A

Admin • 828.03K Points
Coach

Q. Which method checks if any element matches the given predicate?

  • (A) allMatch()
  • (B) findAny()
  • (C) anyMatch()
  • (D) noneMatch()

Explanation by: Admin
anyMatch() returns true if any element satisfies the predicate.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.