equals1 JAVA equals( ) 메서드 public boolean equals(Object obj) Indicates whether some other object is "equal to" this one. The equals method implements an equivalence relation on non-null object references: ◦ It is reflexive : for any non-null reference value x, x.equals(x) should return true. ◦ It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.. 2020. 4. 29. 이전 1 다음 728x90 반응형