The output of the below code is false
false
String str = \"3456\"; String str1 = \"3456\"; System.out.println(Integer.valueOf(str).equals(str1));
a Integer Object can't equals with String Object
use :
boolean a = str.equals(str1);
OR
boolean a = (Integer.parseInt(str) == Integer.parseInt(str1));