/tutorial/external/Java/BSimple.java
http://github.com/tybor/Liberty · Java · 32 lines · 21 code · 9 blank · 2 comment · 1 complexity · 1ccf19f09a840d78956f6a154237aaea MD5 · raw file
- /* BSimple.java */
- class BSimple
- {
-
- public BSimple()
- {
- theInteger = 1;
- }
- public void proc( int i ) throws java.lang.Exception
- {
- java.lang.Exception e;
-
- if ( i >= 0 )
- {
- theInteger = i;
- }
- else
- {
- e = new java.lang.Exception( "exception in BSimple.proc: i=" + i + " < 0" );
- throw( e );
- }
- }
-
- public int theInteger;
- }
- /* End of file */