Advertisements
Advertisements
Question
Name the following:
The String method which has no parameter and returns a String.
Very Short Answer
Advertisements
Solution
The String method trim() has no parameters and returns a String; it removes leading and trailing whitespace from the string.
shaalaa.com
Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
