equals()compareTo() equals() compareTo()String s8 = new String("abc");String s9 = new String("abc");System.out.println(s8.compareTo(s9));