A

Admin • 825.56K Points
Coach

Q. Which is the method reference equivalent of `(a, b) -> a.compareToIgnoreCase(b)`?

  • (A) String::compareTo
  • (B) String::compareToIgnoreCase
  • (C) String::toLowerCase
  • (D) String::isEmpty

Explanation by: Admin
`String::compareToIgnoreCase` compares two strings ignoring case.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.