Here you can find the source of getMonth(int i)
@SuppressWarnings("deprecation") public static int getMonth(int i)
//package com.java2s; import java.util.*; public class Main { @SuppressWarnings("deprecation") public static int getMonth(int i) { return getCurrentDate().getMonth(); }//from w ww . ja va 2 s. c o m public static Date getCurrentDate() { return new Date(System.currentTimeMillis()); } }