package java;
public class Practice_1 {
public static void main(String[] args) {
String a = new String("Wow");
String b = "Wow";
String c = a;
String d = c;
boolean b1 = a == b;
boolean b2 = b.equals(b + "!");
boolean b3 = !c.equals(a);
if (b1 && b2 || b3) {
System.out.println("Success!");
else{
System.out.println("Success");
}
}
}
}
I didn't know how to put code in the box format so I just copied and pasted..., but please do help and please tell me how to put in the box format. Thx! -_-