Код: Выделить всё
String temp1 = "Create";
String temp2 = "Create";
if (temp1.substring(1,2) == temp2.substring(1,2)) System.out.println("Success");
Модератор: Absurd
Код: Выделить всё
String temp1 = "Create";
String temp2 = "Create";
if (temp1.substring(1,2) == temp2.substring(1,2)) System.out.println("Success");
Код: Выделить всё
String temp1 = "Create";
String temp2 = "Create";
if (temp1.substring(1,2).equals(temp2.substring(1,2))) System.out.println("Success");