Look into the API documentation of the String class and locate the trim method. Write a program

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 can use the replace method to remove all spaces from a string.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: