* configure.ac: New switch for disabling -O2 (--disable-optimizations).
[cacao.git] / tests / counter.java
1 public class counter {
2         static public void main (String [] s) {
3         
4                 int n = Integer.parseInt (s[0]);
5         
6                 System.out.print ("Counting ");
7                 System.out.print (n);
8                 System.out.println (" times from 0 to 9999..."); 
9                 
10                 int i,j;
11                 for (j=0; j<n; j++) 
12                         for (i=0; i<10000; i++) {
13                                 }
14                         
15                 System.out.println ("... done");
16                 }
17         
18         }
19         
20