java string not equal to string 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"));