if (!"success".equals(statusCheck))
String name = "John";
// prints true to standard system output.
System.out.print(!name.equals("Alex"));
String word = "Hello"; // Declare String.
word.equalsIgnoreCase("hELlO"); // Returns true.
word.equals("Hello"); // Returns true.
word.equals("heLLo"); // Returns false.