Which statement about the trim() method of the String class is true? Select the one correct answer.
Question:
Which statement about the trim() method of the String class is true?
Select the one correct answer.
(a) It returns a string where the leading whitespace of the original string has been removed.
(b) It returns a string where the trailing whitespace of the original string has been removed.
(c) It returns a string where both the leading and trailing whitespace of the original string has been removed.
(d) It returns a string where all the whitespace of the original string has been removed.
(e) None of the above.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen
Question Posted: