Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of the following specify a comparator for strings in increasing order of their length?
Comparator.comparingInt(String.length)
(s1, s2) -> { s1.length() - s2.length() }
(s1, s2) -> s2.length() - s1.length()
Comparator.comparingInt(String::length)
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!