This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Question regarding the use of Calendar

Soumya Ghosh
Greenhorn

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?

Thanks
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Answered here: http://www.coderanch.com/t/382147/java/java/Calendar-Java


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
 
 
subject: Question regarding the use of Calendar