You just need to check the case of each character. An upper case character signifies the start of a new word. So starting from the beginning of the string copy the first upper case character to a new string. Then for each following character, if it is lower case, copy it to the new string. When you find an upper case character, print the current "new" string, and reset to start the next sequence.
You may need to use the Character (Java Platform SE 7 )