I found that this, but I don't know what the point.
String s1 = new String("heyheyhey");
String s2="heyheyhey";
String s3="heyheyhey";
if(s1==s2)System.out.println("s1 == s2");
if(s2==s3)System.out.println("s2 == s3");
Why different results for both if statements?