Java Month Get getMonth(int month)

Here you can find the source of getMonth(int month)

Description

get Month

License

Open Source License

Declaration

public static String getMonth(int month) 

Method Source Code

//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];
    }
}

Related

  1. getMonth(Date dt)
  2. getMonth(Date theDate)
  3. getMonth(int i)
  4. getMonth(int i)
  5. getMonth(int month)
  6. getMonth(Integer month)
  7. getMonth(long date, int increment)
  8. getMonth(long l)
  9. getMonth(SimpleDateFormat df, String dateStr)