Java Month Name Get toMonthNameAbreviated(int m)

Here you can find the source of toMonthNameAbreviated(int m)

Description

to Month Name Abreviated

License

Open Source License

Declaration

public static String toMonthNameAbreviated(int m) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String toMonthNameAbreviated(int m) {
        if (m == 1)
            return "Jan";
        if (m == 2)
            return "Fev";
        if (m == 3)
            return "Mar";
        if (m == 4)
            return "Abr";
        if (m == 5)
            return "Mai";
        if (m == 6)
            return "Jun";
        if (m == 7)
            return "Jul";
        if (m == 8)
            return "Ago";
        if (m == 9)
            return "Set";
        if (m == 10)
            return "Out";
        if (m == 11)
            return "Nov";
        if (m == 12)
            return "Dez";
        return "";
    }/*from w  w  w  . ja  v  a 2s  .com*/
}

Related

  1. month(String monthName)
  2. monthCalValue(String monthName)
  3. monthName(int month)
  4. monthName(int n)
  5. monthNameAbbrev(int mon)