Okay, so I have this code, it prompts a month and a year from the user and prints the calendar for that month. I\'m having some problems though.
There are a couple issues I noticed. For one, instead of getting your own days in the month or leap year info, you could use the java.util.Calendar class, which will do that for you.
Also, \n newlines don't behave well when interspersed with HTML formatting, so try using < br/> instead. This is causing the font choice to work improperly.
It looks like extra spaces also get stripped, so surrounding everything with a < pre> tag will fix that.