Ch5 – Relational Operators

  1. Start DrJava and expand the Interactions Pane.
  2. Type the following into the pane.
> String fruit1 = "Apple";
> String fruit2 = "Orange";
> System.out.println(fruit1.equals(fruit2));

The output should be false.drjava_four_a