String name = "John"; // prints true to standard system output. System.out.print(!name.equals("Alex"));