Welcome to DrJava. Working directory is C:\Users\Classroom\Desktop > int x = 5 > x 5 > int y = 7 > x + y 12 > System.out.println(x+y) 12 > x + y 12 > System.out.println(x+y) 12 > "12" "12" > x + (int z = 4) Invalid top level statement > int bob = 44 > if (true) 5 else 5 Expression statement required > > > "cat" + "dog" "catdog" > 4 + 5 9 > "cat" + 5 "cat5" > 7 + "dog" "7dog" > 7.45 + "dog" "7.45dog" > 7.45 + 4 11.45 > 'c' + "dog" "cdog" > 7.45 + 'c' 106.45 > 8 + 'c' 107 > "8" + 'c' "8c" > "8" + 43 "843" > 'a' + 'c' 196 > > > 5 - 6 -1 > - 6 -6 > > > > 'c' 'c' > "cat" + 's' "cats" > > > int x > x 0 > int z > z 0 > int sss > sss 0 > double d2 > d2 0.0 > > > > int[] a1 = {1,2,3,4} > a1 { 1, 2, 3, 4 } > > a1[3] 4 > a1[2] 3 > > class XYZ {int x; int y;} > XYZ c4 = new XYZ() > c4 XYZ@16805db8 > c4.x 0 > c4.y 0 > c4.x = 56 56 > c4.y = 100 100 > c4.x 56 > XYZ c5 = new XYZ() > c5.x 0 > c5.y 0 > > class XYZ2 {int x; double y; String s;} > XYZ2 x5 = new XYZ2() > x5 XYZ2@7aa0d9a8 > x5.s null > x5.s = "cat" "cat" > > class F {public static int f(int x){return 3*x + 5;}} > F.f(5) 20 >