Which method reference is ideal for sorting a list of integers?
Correct answer
Integer::compareTo
Explanation
`Integer::compareTo` can be used to compare integers.
Update: Admin added a tag on this question
Topics
By Admin · · 30 views