ExpressionsThing.java
1    package expressions;
2    
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            //the above statements are incorrect as they are not fully parenthesised
10           double three = (3.14* (5+5));
11           System.out.println("three =" + three);
12           int four = (2*3);
13           System.out.println("four = " + four);
14           double five = (55*(0.5));
15           System.out.println("five=" + five);
16           double six = (0.33*65);
17           System.out.println("six =" + six);
18           double seven= ((0.5*55) +( 0.33*65));
19           System.out.println("seven=" +seven);
20           double eight= ((3.14)*(11.3*11.3));
21           System.out.println("eight=" +eight);
22           double nine = (27.7*27.7);
23           System.out.println("nine=" +nine);
24           double ten = ((400.9466+767.29)/2);
25           System.out.println("ten=" +ten);
26           double eleven =(.17* 243.5);
27           System.out.println("eleven=" + eleven);
28           int twelve =(3/3);
29           System.out.println("twelve=" + twelve);
30           int thirteen =((4*2)-7);
31           System.out.println("thirteen=" +thirteen);
32           int fourteen= ((7+9)/(3+1));
33           System.out.println("fourteen=" + fourteen);
34           int fifteen= (6-((2+2+4)/8));
35           System.out.println("fifteen="+fifteen);
36   
37   
38           }
39   }
40