KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Example


1 public class Example {
2     public static final void main( String JavaDoc[] args ) {
3         int x,y,z;
4         z = 1;
5         x = 2;
6         y = 3;
7         if( x <= y ) {
8             do {
9                 
10                 y = y - 1;
11             } while( y > 0 );
12         } else {
13             x = x + 1;
14         }
15         System.out.println( z );
16     }
17 }
18
Popular Tags