75e30bb8d4d67ed71d94288e12cabff828bf9ad1
[IRC.git] / Robust / src / Tests / mlp / tinyTest / test.java
1
2 public class Test {
3
4   public static void main( String args[] ) {
5     int x = Integer.parseInt( args[0] );
6     doSomeWork( x );
7   }
8
9   public static void doSomeWork( int x ) {
10     for( int i = 0; i < x; ++i ) {
11       int sum = 0;
12         
13       sese change {
14         sum = sum + 1;  
15       } 
16
17       for( int l = 0; l < 3; ++l ) {
18         sum = calculateStuff( sum, 2, 2 );
19       }      
20
21       sese prnt {
22         mightPrint( x, i, sum );
23       }
24     }
25   }
26
27   public static int calculateStuff( int sum, int num, int mode ) {
28     return sum + 10;
29   }
30
31   public static void mightPrint( int x, int i, int sum ) {
32     if( i == x - 1 ) {
33       System.out.println( "sum of integers 0-"+i+"("+x+") is "+sum );
34     }
35   }
36 }