File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Question regarding the use of Calendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

Question regarding the use of Calendar

Soumya Ghosh

Joined: Dec 31, 2006
Posts: 26
I have a question regarding the use of Calendar.

User will give year (e.g 2006,2007, etc.) as input. I have to find out the "date" of the "friday,saturday and sunday" of each month through out the year. Then I have to display thaose as result.
How can I do that? Can anyone please help me for solving this problem?
Can any one please give me any hint by sample program code?

Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Answered here:

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: Question regarding the use of Calendar
It's not a secret anymore!