Hello!
This is my first post. I am an absolute, total beginner in learning CS and am working through the art and science of
Java book to teach myself Java, using a version of Stanford's cs106a class that's on itunes. I'm having a trouble with one of the problems.
I'm supposed to create a very basic calendar that includes the date of the month. On this calendar (stretched from Sunday to Saturday), the month would start on Friday. The number of weeks should also change based upon how many days there are in the month. Instead I get rows of squares, each containing a "0" My code is here:
What ends up happening under these conditions looks like the attached picture. Can anyone here please help me figure out what exactly is going on in these loops and why my dates won't show up properly?
As a related question, what exactly ARE I and J? I imagine the machine as drawing these squares left to right, then moving down, and drawing another row. Using the pause method shows me that's what is happening but as a beginner I'm feeling very, very lost. Any help would be appreciated!
*edit attached a picture of my results