how to check not equal in string 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"));