Here you can find the source of getDutchMonthName(int monthNumber)
Parameter | Description |
---|---|
monthNumber | one-based month number (1=January, ...) |
public static String getDutchMonthName(int monthNumber)
//package com.java2s; /******************************************************************************* * Copyright (c) 2010, 2012 Institute for Dutch Lexicology * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.//from w w w . j av a 2s .c om *******************************************************************************/ public class Main { /** Dutch names of the month, for use in getMonthName */ final static String[] dutchMonthNames = { "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december" }; /** * Return the (Dutch) month name * * @param monthNumber * one-based month number (1=January, ...) * @return the (Dutch) month name */ public static String getDutchMonthName(int monthNumber) { if (monthNumber < 1 || monthNumber > 12) throw new RuntimeException("Invalid month number " + monthNumber + " (must be 1-12)"); return dutchMonthNames[monthNumber - 1]; } }