This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I think you are trying to do too much at once. I think you ought to get something which prints out the numbers running, then later work out how to format them. A lot pf people try to do everything in one step, and that makes it difficult to do anything.