[quote]byte[] buff = new byte[]{'H', 'e', 'l', 'l', 'o'};
String str1 = new String(buff);
String str2 = "Hello";
if(str1 == "Hello"){
System.out.println("Every good programming language");
}
else if(str1 == str2){
System.out.println("lolwut?");
}
else{
System.out.println("Java " + (str1.equals("Hello") ? "sucks" : "doesn't suck"));
}[/quote]
Output:[quote]Java sucks[/quote]
-
I know your feels.