KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Compare3


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

20
21
22         long j = i + l;
23         /*float f = 0.978213F;
24         double d = 0.9;
25
26         if (d == f) {
27             d += f;
28         }*/

29     }
30 }
31
Popular Tags