aspose file tools*
The moose likes Beginning Java and the fly likes Where are the dates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Where are the dates" Watch "Where are the dates" New topic
Author

Where are the dates

Alice Stevens
Greenhorn

Joined: Apr 25, 2003
Posts: 4
Hello all:
This board was highly recommended by a couple of folks in my beginning java class so I hope that I am not imposing on you with my questions.
I did a search on the web for calendar projects (like a lot of us did) and I found this one. This code is suppose to print out a calendar for a month and year that's input by a user. The code prints out the month and array of days of the week but it will not print out the dates of the month.
Would someone be able to tell be why the program scrolls down after the days of the week row instead of printing out the dates 1, 2, 3, etc.? How do I get the dates of the month to show up.
Thank you for your patience and assistance.
Donald R. Cossitt
buckaroo
Ranch Hand

Joined: Jan 31, 2003
Posts: 401
Will this even compile?


doco
Alice Stevens
Greenhorn

Joined: Apr 25, 2003
Posts: 4
It compiles without any problems but when I run the code I get:
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

The code is NOT compiling...
Where is the class 'SavitchIn'?
Rene


Regards, Rene Larsen
Dropbox Invite
Alice Stevens
Greenhorn

Joined: Apr 25, 2003
Posts: 4
My apologies - the Savitch Class is a Class that came with the CD in the book we're using. Here is the Savitch class:
Donald R. Cossitt
buckaroo
Ranch Hand

Joined: Jan 31, 2003
Posts: 401
File won't compile

I am not real familiar with the symbol pointed to by the JVM. What package is this imported from? Other than that it is difficult to tell where some of your if/else & for structs end and begin as there are few to no curly braces. The total lack of indentation at those junctures makes it equally difficult to see what you are doing.
Check this out.
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
In this block of code near the end:

I'm not sure because I haven't tried running it, but it seems to me that if you'd replace the second System.out.println() with something like:

... then you might get the correct output.
Alice Stevens
Greenhorn

Joined: Apr 25, 2003
Posts: 4
Oh my - there goes those dates. It's amazing what the difference a few lines of coding can do.

Thank you!
[ April 25, 2003: Message edited by: Alice Stevens ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where are the dates