A

Admin • 831.35K Points
Coach

Q. How to find the largest element in an array?

  • (A) Use Arrays.max()
  • (B) Use array.sort()
  • (C) Use a loop and compare
  • (D) Use array.max()
  • Correct Answer - Option(C)
  • Views: 15
  • Filed under category Java
  • Hashtags: Java Array

Explanation by: Admin
You can use a loop to compare and find the largest element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.