How to get weeks for a particular year with Calendar object? What I want is, starting from the first week of a particular year till the end, I need the start date of all the weeks considering Sunday as the first day. For eg. For year 2011 starting from month of January I need all the start dates of every week. 2 Jan 2011- 8 Jan -2011, 9 Jan 2011- 15 Jan 2011 etc.....
Kindly let me know if you have any solution to this...
Using Sridhar's suggestion and Calendar's add() method you can generate the calendar objects you need and store them in the collection of your choice. Try coding it and come back if you need help.
Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795