How do you find the number of days in a month in Java?
Set the year and month on a Calendar object and then use getActualMaximum to return the last day:
getActualMaximum
calendar.getActualMaximum(Calendar.DAY_OF_MONTH)
1.4m articles
1.4m replys
5 comments
57.0k users