comapring two strings
hey,
in this code:
String str= "java";
String s= "java";
String tmp= new String("java");
t= s.equals(tmp);
System.out.println(t);
=(s==tmp);
System.out.println(t);
t= (str==s);
System.out.println(t);
why would the second print, print false?
whats the difference between: new string("java") and: ="java"

