You probably have found the errors by now, but here goes:
does not work, because the method 'printNumbers' prints a couple of newlines, ruining the idea.
Besides, every first day of a month starts on sunday.
An idea is to have a Month class (but be careful: Java has alrady a Month class), that contains a String array, with the first row the names of the days (sun ... sat), and the other rows containing the days (you need a maximum of 6 rows for this). Given a Month and a day, you then need to figure out where that day needs to be placed in the array. By using Strings, it makes it easy to have empty places in the print out.
In your printing routine, you can print the rows of three consecutive months.
I hate signatures!
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Try Free Java/.NET Libraries for Word Excel PowerPoint and PDF