A

Admin • 825.56K Points
Coach

Q. Which method reference would map a collection of strings to their lengths?

  • (A) String::length
  • (B) String::valueOf
  • (C) String::charAt
  • (D) String::substring

Explanation by: Admin
`String::length` returns the length of each string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.