The trim() method in Java used to ___

83. The trim() method in Java used to ___.

  1. Remove the given character
  2. Remove the values after the given index
  3. Remove leading and trailing spaces
  4. None of these

Answer: C) Remove leading and trailing spaces

Explanation:

The Java method trim() is a built-in function that eliminates leading and trailing spaces.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.