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. */