Quiz: The trim Method
Consider the variable declaration
String messyString = " Hello, Space! ";
What is the return value of messyString.trim()? Be sure to include the quotation marks. |
"Hello, Space!" |
Note that the space in the inside of the string is not removed. |