Java equals() Java compareTo() Java StringCompareequl Java equals() public class StringCompareEqual{ public static void main(String []args){ String s1 = "codingdict"; String s2 = "codingdict"; String s3 = new String ("Tutorials Point"); System.out.println(s1.equals(s2)); System.out.println(s2.equals(s3)); } } Java compareTo() Java StringCompareequl