Here you can find the source of monthName(int month)
public static String monthName(int month)
//package com.java2s; //License from project: Open Source License public class Main { public static String monthName(int month) { String monthName = ""; switch (month) { case 1://from w w w .j ava 2 s .c o m monthName = "Janvier"; break; case 2: monthName = "Fevrier"; break; case 3: monthName = "Mars"; break; case 4: monthName = "Avril"; break; case 5: monthName = "Mai"; break; case 6: monthName = "Juin"; break; case 7: monthName = "Juillet"; break; case 8: monthName = "Aout"; break; case 9: monthName = "Septembre"; break; case 10: monthName = "Octobre"; break; case 11: monthName = "Novembre"; break; case 12: monthName = "Decembre"; break; } return monthName; } }