Here you can find the source of getDaysInMonths()
public static int[] getDaysInMonths()
//package com.java2s; //License from project: Apache License public class Main { final static int DOM[] = { 31, 28, 31, 30, /* jan feb mar apr */ 31, 30, 31, 31, /* may jun jul aug */ 30, 31, 30, 31 /* sep oct nov dec */ };/*from w ww . j a v a2s . co m*/ public static int[] getDaysInMonths() { return DOM.clone(); } }