package hashcode.com; public class Hashcode { public static void main(String [] args){ String a = "suresh"; String b ="suresh"; if(a.equals(b)){ System.out.println("a and b both variable are equals and their respective values are : " + " " + a.hashCode() + " And " + b.hashCode() ); } String c = "suresh"; String d = "kumar"; if(!c.equals(d)){ System.out.println("c and d both variable are un_equals and their respective values are : " + " " + c.hashCode() + " And " + d.hashCode() ); } } }