checking if a string is not equal to something java code example
Example: java string not equal
String name = "John";
// prints true to standard system output.
System.out.print(!name.equals("Alex"));
String name = "John";
// prints true to standard system output.
System.out.print(!name.equals("Alex"));