KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Compare2


1 public class Compare2 {
2     public static void main(String JavaDoc [] args) {
3     
4         Compare2 c = new Compare2();
5         c.run();
6     }
7
8     private void run() {
9         int i = 9;
10         long l = 10;
11
12         if (l >= i) {
13             System.out.println(l);
14         }
15         else if (l < i) {
16             System.out.println(i);
17         }
18
19
20         /*float f = 0.978213F;
21         double d = 0.9;
22
23         if (d == f) {
24             d += f;
25         }*/

26     }
27 }
28
Popular Tags