public class Main { public static void main(String[] args) { String testpro1 = "TestPro"; String testpro2 = "TestPro"; System.out.println(testpro1.equals(testpro2)); } } // Output: true
public class Main { public static void main(String[] args) { String testpro1 = "TestPro"; String testpro2 = "TestPro"; System.out.println(testpro1.equals(testpro2)); } } // Output: true