Here you can find the source of monthAdhToNumber(final String month)
public static String monthAdhToNumber(final String month)
//package com.java2s; /**/*from ww w . j a v a 2 s .c o m*/ * Copyright (C) 2008-2010, Squale Project - http://www.squale.org * * This file is part of Squale. * * Squale is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or any later version. * * Squale is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Squale. If not, see <http://www.gnu.org/licenses/>. */ public class Main { public static String monthAdhToNumber(final String month) { if (month.equals("JAN")) { return "01"; } if (month.equals("FEB")) { return "02"; } if (month.equals("MAR")) { return "03"; } if (month.equals("APR")) { return "04"; } if (month.equals("MAY")) { return "05"; } if (month.equals("JUN")) { return "06"; } if (month.equals("JUL")) { return "07"; } if (month.equals("AUG")) { return "08"; } if (month.equals("SEP")) { return "09"; } if (month.equals("OCT")) { return "10"; } if (month.equals("NOV")) { return "11"; } if (month.equals("DEC")) { return "12"; } return null; } }