PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1/* BSimple.java */
 2
 3class BSimple
 4{
 5	
 6   public BSimple()
 7   {
 8		theInteger = 1;
 9   }
10
11
12   public void proc( int i ) throws java.lang.Exception
13   {
14      java.lang.Exception e;
15      
16      if ( i >= 0 )
17      {
18         theInteger = i;
19      }
20      else
21      {
22         e = new java.lang.Exception( "exception in BSimple.proc: i=" + i + " < 0" );
23         throw( e );
24      }
25
26   }
27   
28	public int theInteger;
29
30}
31
32/* End of file */