Methods & String Assignment

You absolutely must know how to use the following string methods: length(), charAt(), substring(), indexOf(), as well as changing a String to a character array and vice versa.
There are some other very simple methods that you also need to know: toUpperCase(), toLowerCase(), trim().

Strings are very useful and important, so the more you know about handling and manipulating them the better.

This is an introductory program but some of the later programs are quite hard to do. Take time and work out the procedure that you think should work - probably before you start coding.

To learn more please see my notes and Strings at coding bat.com

Program

Write a program that does the following. It should use methods and no global variables.

If you have extra time, write another method that removes all punctuation (ie. anything that is NOT a letter, a number, or a space).

And also remove consecutive spaces.

Upload the .java file to ICSupload