KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Simplemath


1 class Simplemath {
2     public static void main(String JavaDoc[] args) {
3         int a=3, b=3;
4         a = a-1;
5         System.out.print((a*a == 4) + " ");
6         b = b-1;
7         System.out.print((b*b == 4) + " ");
8         System.out.println(a == b);
9     }
10 }
11 /* Expected Output:
12 true true true
13 */

14
Popular Tags