How to Get a Particular Day List in a Month using Java

Get a Particular Day List in Java

In this example, We will show you about, How to get a particular day list in a month using java

1) Getting Day List from Specific Day

2) Formatting the Date

3) Getting the day name

4) Final Example

Output

This following output will give you idea about how to get a particular day list using Java.

Sunday
————————–
1 Jan, 2017
8 Jan, 2017
15 Jan, 2017
22 Jan, 2017
29 Jan, 2017

Monday
————————–
2 Jan, 2017
9 Jan, 2017
16 Jan, 2017
23 Jan, 2017
30 Jan, 2017

Tuesday
————————–
3 Jan, 2017
10 Jan, 2017
17 Jan, 2017
24 Jan, 2017
31 Jan, 2017

Wednesday
————————–
4 Jan, 2017
11 Jan, 2017
18 Jan, 2017
25 Jan, 2017

Thursday
————————–
5 Jan, 2017
12 Jan, 2017
19 Jan, 2017
26 Jan, 2017

Friday
————————–
6 Jan, 2017
13 Jan, 2017
20 Jan, 2017
27 Jan, 2017

Saturday
————————–
7 Jan, 2017
14 Jan, 2017
21 Jan, 2017
28 Jan, 2017

References

1. Java Calendar API
2. Java Date API