/Users/lyon/j4p/src/bookExamples/ch02DataTypes/primative/BooleanExpressions.java
|
1 package bookExamples.ch02DataTypes.primative;
2
3 import futils.Out;
4 import futils.ReaderUtil;
5
6 public class BooleanExpressions {
7
8 public static void main(String args[]) {
9
10 double a = ReaderUtil.getDouble("a");
11 double b = ReaderUtil.getDouble("b");
12
13 if (a > b)
14 Out.print(a + ">" + b);
15 if (a < b)
16 Out.print(a + "<" + b);
17 if (a >= b)
18 Out.print(a + ">=" + b);
19 if (a <= b)
20 Out.print(a + "<=" + b);
21 if (a == b)
22 Out.print(a + "=" + b);
23 if (a != b)
24 Out.print(a + "!=" + b);
25 }
26 }