Welcome to DrJava. Working directory is C:\Users\rlkraft > int x = 3 > x == 4 false > x == 2+1 true > x = 2+2 4 > x == 4 true > 3 > 2 true > 3 < 2 false > 3 <= 2 false > 3 > 3 false > 3 >= 3 true > 3 => 3 Invalid top level statement > 3 >= 2 true > 3 != 3 false > 1 != 2 true > > "hello" == "bye" false > String x = "Hello" > x "Hello" > x = "Hello" "Hello" > x == "Hello" false > x "Hello" > x.equals("Hello") true > int y =4 > y == 4 true > y.equals(4) Static Error: No method in int has name 'equals' > x.equals("Hello") || x.equals("Bye") true > x="Bye" "Bye" > x.equals("Hello") || x.equals("Bye") true > x="bye" "bye" > x.equals("Hello") || x.equals("Bye") false > x="Bye" "Bye" > x.equals("Hello") || x.equals("Bye") true > x="Hello" "Hello" > x.equals("Hello") || x.equals("Bye") true > String z = "Bye" > x.equals("Hello") || z.equals("Bye") true > x.equals("Hello") && z.equals("Bye") true > x.equals("Hello") && x.equals("Bye") false > > > 2 == 3 || 3 != 4 && 0 == 2-2 true > (2 == 3) || ( (3 != 4) && (0 == (2-2)) ) true > (2 == 3) || ( (3 != 4) && (0 == (2-2)) ); > (2 == 3) || ( (3 != 4) && (0 == (2-2)) ) true > 3+4; > 3+4 7 > int w = 5 > w=6 6 > int q = 6 > q 6 > (w = 10) + 3 13 > w 10 > (int v = 10) + 3 Invalid top level statement > (int w = 10) + 3 Invalid top level statement > > > 3 == 2+1 true > ! 3 == 2+1 Static Error: Bad type in logical not expression > ! (3 == 2+1) false > !3 Static Error: Bad type in logical not expression > ! false true > ! true false > > ! (x.equals("Hello")) && ! (z.equals("Bye")) false > x "Hello" > xz Static Error: Undefined name 'xz' > z "Bye" > if ( 3 == 2+1 ) System.out.println(5) else system.out.println(8) Invalid if statement > if ( 3 == 2+1 ) System.out.println(5); else system.out.println(8) ; Static Error: Undefined name 'system.out' > if ( 3 == 2+1 ) System.out.println(5); else System.out.println(8) ; 5 >