- Start DrJava and expand the Interactions Pane.
- Type the following into the pane.
> String fruit1 = "Apple"; > String fruit2 = "Orange"; > System.out.println(fruit1.equals(fruit2));
The output should be false.
> String fruit1 = "Apple"; > String fruit2 = "Orange"; > System.out.println(fruit1.equals(fruit2));
The output should be false.