Here you can find the source of getMonth(int month)
public static String getMonth(int month)
//package com.java2s; /**/*from w w w .j av a2 s .co m*/ * Java * * Copyright 2014 IS2T. All rights reserved. * Use of this source code is governed by a BSD-style license that can be found at http://www.is2t.com/open-source-bsd-license/. */ public class Main { private static final String[] MONTHS = new String[] { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; public static String getMonth(int month) { return MONTHS[month]; } }