aspose file tools*
The moose likes Java in General and the fly likes Question regarding Calendar in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Question regarding Calendar in Java" Watch "Question regarding Calendar in Java" New topic
Author

Question regarding Calendar in Java

Soumya Ghosh
Greenhorn

Joined: Dec 31, 2006
Posts: 26
Hi,
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 "first friday" 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
Ibrahim AlShehri
Greenhorn

Joined: Jan 29, 2007
Posts: 12
Check this code.



[ March 01, 2007: Message edited by: Ibrahim AlShehri ]

[ March 01, 2007: Message edited by: Ibrahim AlShehri ]
[ March 01, 2007: Message edited by: Ibrahim AlShehri ]

SCJP 5.0 (87%)
Soumya Ghosh
Greenhorn

Joined: Dec 31, 2006
Posts: 26
Thanks a lot.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question regarding Calendar in Java