Please don't post "hijack" someone else's post please
Start a new topic if you have a separate un-related question.
Also, make sure you use [highlight] tags around your code, they make it much easier to read it. If you're unsure how to do this, see my signature.
It's not aligning because you're printing out some 2-digit numbers, which take up more space than 1-digit numbers.
To manually fix this, you can calculate how many spaces to print out based on the number of digits you're printing out. There are also "automatic formatters" built into Java, but they're a little more difficult to use.