ExpressionsThing.java
1    /* 
2    *Code that helps to explore how arithmetic expressions are conducted in code 
3             */
4    package expressions;
5    
6    public class ExpressionsThing {
7        public static void main(String[] args) {
8            double one = 3.14 * 5 +5;
9            System.out.println("one = " + one);
10           double two = 3.14 * (5+5);
11           System.out.println("two = " + two);
12           double three = (3.14* (5+5));
13           System.out.println("three = " + three);
14          // -----------------------------------------------------------------
15                   int four = (2*3);
16           System.out.println("four = " + four);
17           double five = (55/2);
18           System.out.println("five = "+ five);
19           double six = ((1.0/3)*(65));
20           System.out.println("six =" +  six);
21           double seven = ((55/2)+(65/3));
22           System.out.println("seven = " + seven);
23           //---------------------------------------------------------------------
24           double eight = (3.14*(11.3 * 11.3));
25           System.out.println("eight = " + eight);
26           double nine = (27.7 * 22.7);
27           System.out.println("nine = " + nine);
28           double ten = ((eight + nine)/2);
29           System.out.println("ten = " + ten);
30           double eleven = (0.17 * 243.5);
31           System.out.println("eleven = " + eleven);
32           //----------------------------------------------------------------------
33           int twelve = (3/3);
34           System.out.println("twelve = " + twelve);
35           int thirteen = (7-(4+2));
36           System.out.println("thirteen = " + thirteen);
37           int fourteen = ((7-(9/3))/1);
38           System.out.println("fourteen = " + fourteen);
39           int fifteen = ((6-((2*2)+4)/8));
40           System.out.println("fifteen = " + fifteen);
41       }
42   }
43   
44