Q. What is the purpose of the trim() method of a String object in Java?
β
Correct Answer: (D)
To remove leading and trailing whitespace
You must be Logged in to update hint/solution