A

Admin • 828.03K Points
Coach

Q. Which method checks if an element is present in the Set?

  • (A) exists()
  • (B) contains()
  • (C) find()
  • (D) has()
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
The `contains()` method checks if a Set contains a specified element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.