Take a look at the API doc for the String class. Remember that Strings can't be changed. methods that operate on the contents return a new String with the changes
Then write a short simple program...