This is weird.
So, I was teaching somebody how to use Java and I had essentially said if you compare two strings with == they are not necessarily equal even if they have the same value. So...
String str1 = "text";
String str2 = "text";
System.out.println(str1 == str2);
This printed out true.
...WHAT? Does == now evaluate based on .equals rather than the reference or something? Or am I missing something here...