Hey, @Rkbhushan
Here goes an example regarding your query.
To list weekday names, use the getWeekdays () from the DateFormatSymbols class in Java.
DateFormatSymbols is a class for encapsulating localizable date-time formatting data.
Get weekday month names in an array −
String[] days = new DateFormatSymbols().getWeekdays ();
Display the weekdays −
for (int i = 0; i < days.length; i++) {
String weekday = days[i];
System.out.println(weekday);
}
Output
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
It will be better for us to resolve your query if you kindly post your exact week based lists between the start date and end date.