1 package expressions; 2 3 public class ExpressionThings { 4 5 public static void main(String[] args) { 6 7 int four = (2 * 3); 8 9 double one = 3.14 * 5 + 5; 10 System.out.println("one = " + one); 11 double two = 3.14 * (5 + 5); 12 System.out.println("two = " + two); 13 double three = (3.14 * (5 + 5)); 14 System.out.println("three = " + three); 15 16 System.out.println("four = " + four); 17 18 double five = (55 / 2); 19 System.out.println("five = " + five); 20 21 double six = (63 / 3); 22 System.out.println("six =" + six); 23 24 double seven = ((55 / 2) + (65 /3)); 25 System.out.println("seven =" + seven); 26 27 double eight = (3.14 * (11.3 * 11.3)); 28 System.out.println("eight = " + eight); 29 30 double nine = (27.7 * 27.7); 31 System.out.println("nine = " + nine); 32 33 double ten = ((eight + nine)/2); 34 35 double eleven = (.17 * 243.5); 36 System.out.println("eleven = " + eleven); 37 38 int twelve = (3 / 3); 39 System.out.println(twelve); 40 41 int thirteen = ((7 - 4) - 2); 42 System.out.println(thirteen); 43 44 int fourteen = (((9 - 7) - 1) + 3); 45 System.out.println("fourteen = " + fourteen); 46 47 int fifteen = ((((6 + 8) / 2) - 4) + 2); 48 System.out.println("fifteen = " + fifteen); 49 } 50 51 52 } 53