Computer Applications

Which of the following functions is used to remove leading and trailing white spaces from the string?

  1. trim( )
  2. trail( )
  3. truncate( )
  4. slice( )

Java String Handling

23 Likes

Answer

trim( )

Reason — trim( ) function is used to remove leading and trailing white spaces from the string.

Answered By

13 Likes


Related Questions