ExpressionsThing.java
1    // This program showcases how to construct arithmetic expressions in the context of very simple problem solving
2    package expressions;
3    public class ExpressionsThing {
4        public static void main(String[] args) {
5            double one = 3.14 * 5 + 5;
6            System.out.println("one = " + one);
7            double two = 3.14 * (5 + 5);
8            System.out.println("two = " + two);
9            double three = ( 3.14 * ( 5 + 5 ) );
10           System.out.println("three = " + three);
11           int four = ( 2 * 3 );
12           System.out.println("four = " + four);
13           double five = ( 55.0 / 2.0 );
14           System.out.println("five = " + five);
15           double six = ( 0.333 * 65.0 );
16           System.out.println("six = " + six);
17           double seven = ( ( ( 55.0 / 2.0 + 0.333 * 65.0) ) );
18           System.out.println("seven = " + seven);
19           double eight = (3.14 * ( 11.3 * 11.3 ) );
20           System.out.println("eight = " + eight);
21           double nine = ( 27.7 *27.7 );
22           System.out.println("nine " + nine);
23           double ten = ( eight + nine / 2 );
24           System.out.println("ten = " + ten);
25           double eleven = ( 243.5 * 0.17 );
26           System.out.println("eleven = " + eleven);
27           int twelve = ( 3 / 3 );
28           System.out.println("twelve = " + twelve);
29           int thirteen = ((7 - 4 - 2));
30           System.out.println("thirteen = " + thirteen);
31           int fourteen = (((9 - 7 + 3 - 1)));
32           System.out.println("fourteen = " + fourteen);
33           int fifteen = ((((4+8-6-2+2))));
34           System.out.println("fifteen = " + fifteen);
35   
36   
37   
38   
39   
40   
41   
42   
43   
44   
45   
46   
47       }
48   }
49