M

Mr. Dubey • 100.28K Points
Coach

Q. What method reference is appropriate for converting a list of numbers to their absolute values using streams?

  • (A) Math::abs
  • (B) Integer::parseInt
  • (C) Number::intValue
  • (D) Collections::max
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category JAVA

Explanation by: Mr. Dubey
`Math::abs` converts numbers to their absolute values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics