evaluation tag

1 questions


1 answers
168 views
0
What do you compare the contents() method of ArrayList?

ArrayList<Thing> basket = new ArrayList<Thing>(); Thing thing = new Thing(100); basket.add(thing); Thing another = new Thing(100); basket.contains(another); // true or false?class Thing { ...


© 2024 OneMinuteCode. All rights reserved.