along similar lines to the post on c# nullable types. what would be the disadvantage of adding a string primitive?
string s = "test";
if (s == "test")
System.out.println ("is equal");
I would consider it more a convenience function. I know there are:
but 9/10 times when I want to compare strings I am doing an value comparison, not object comparison.