Question: Look into the API documentation of the String class and locate the trim method. Write a program demonstrating what it does. Then show how you
Look into the API documentation of the String class and locate the trim method.
Write a program demonstrating what it does. Then show how you can use the replace method to remove all spaces from a string.
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
Sure lets dive into it First of all the trim method in the String class removes any leading or trail... View full answer
Get step-by-step solutions from verified subject matter experts
