Re: looping through a string
Sit down with and write out how you would do this. This is your algorithm. Then translate this to code. Use the API to guide and provide you methods you can use, for instance, String (Java Platform SE 6) When you lay down some code and have trouble, post with the code and a specific question
Re: looping through a string
Not sure I understand exactly what you mean, but if you want to loop through a string you can always use the chatAt or substring methods in a for loop or something. Just follow copegs link, it contains descriptions of all the methods in the string class.