For object equality, you should be using the equals as opposed to equality with '==', which is more for primitives. Using your example:
String s1 = new String("HI");
String s2 = new...
Type: Posts; User: copeg
For object equality, you should be using the equals as opposed to equality with '==', which is more for primitives. Using your example:
String s1 = new String("HI");
String s2 = new...