str[0].equals(str[1]); Integer n1 = 10, n2=10; n1.equals(n2);
여기서는 int가 아니라 Integer라는 wrapper(래퍼)클래스를 사용해서 객체로 만들어서 equals 메소드에 넣어주어야한다.