Computer Applications

A string function which removes the blank spaces provided in the prefix and suffix of a string.

  1. String.trim()
  2. String.ltrim()
  3. String.rtrim
  4. String.strim

Java String Handling

3 Likes

Answer

String.trim()

Reason — String.trim() function removes the blank spaces provided in the prefix and suffix of a string.

Answered By

2 Likes


Related Questions