Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.text.DateFormatSymbols;

public class Main {
    public static String getMonth(String monthNo) {
        DateFormatSymbols dfs = new DateFormatSymbols();
        String[] months = dfs.getMonths();
        return months[Integer.parseInt(monthNo) - 1];
    }
}