KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > IfTrueTest


1 public class IfTrueTest {
2
3     public static void main(String JavaDoc [] args){
4         
5         int x = 0;
6
7         if (true) {
8             x = 8;
9         }
10         else {
11             x = 9;
12         }
13     }
14 }
15
Popular Tags