User Profile
Collapse
-
Ah, perfect. Thank you for the explanation. -
String comparisons
Now I'm new to Java, but I was under the impression that when using == to compare two Strings, java checked to see whether the objects where exactly the same rather than doing the character by character check that equals() performs.
However, when I was just fiddling about, I wrote this:
...Code:public class Test { private String testString; private String compareString; public
No activity results to display
Show More
Leave a comment: