maxDays = calendar.getActualMaximum(calendar.DAY_OF_MONTH);
System.out.println(maxDays);
When looking through the javadocs it seems like this would work but it apparently doesn't. Any help on figuring why it doesn't or another way would be appreciated