ArrayList contains and equals
Ngày đăng:
19/12/2021
Trả lời:
0
Lượt xem:
77
This is my Hole Class class Hole { public int a; public int b; Hole(int a, int b) { this.a = a; this.b = b; }So i adding an ArrayList that contain several several hole when i add Hole userInputHole = new Hole(0,1); System.out.print(leftFlowInnerHole.contain(userInputHole));it always return false !! it suppose to return true. Is there anything i miss ?? Thank you in advance |