java check if 2 strings are equal to other 2 strings code example
Example: java how to compare strings
System.out.println("hey".equals("hey")); //prints true
/*
always use .equals() instead of ==,
because == does the compare the string content but
loosely where the string is stored in.
*/