Which of these method of class String is used to remove leading and trailing whitespaces?
A. startsWith()
B. trim()
C. Trim()
D. doTrim()
Answer:A
Which of these method of class String is used to remove leading and trailing whitespaces?
A. startsWith() B. trim() C. Trim() D. doTrim()
Explanation: None.