1String a = "Hello"
2
3if (a.equals("Hello") {
4 System.out.println("Variable A is Hello");
5} else {
6 System.out.println("Variable A is not hello :(");
7}
1String a = "Hello"
2
3if (a.equals("Hello") {
4 System.out.println("Variable A is Hello");
5} else {
6 System.out.println("Variable A is not hello :(");
7}