If it was me, I would do it by parsing it to a string and using Stringtokenizer to pull each part into an array String.length() big. Then you can just make a FOR loop to increment through the whole array and print out each individual character (or number, whatever). Dont really have any time to code atm but that should at least be a start. How new are you to java?