Your job is to transform numbers 1, 2, 3, . . ., 12 into the corresponding month names January, February, March, . . ., December. Implement a class Month whose constructor parameter is the month number and whose getName method returns the month name. Hint: Make a very long string "January February March . . . ", in which you add spaces such that each month name has the same length. Then use substring to extract the month you want.

Complete the following file:

Month.java

Use the following file:

MonthTester.java

/**
   This program tests the Month class.
 */
public class MonthTester
{
   public static void main(String[] args)
   {
      Month jan = new Month(1);
      System.out.println("Name: " + jan.getName());
      System.out.println("Expected: January");
      Month mar = new Month(3);
      System.out.println("Name: " + mar.getName());
      System.out.println("Expected: March");
      Month dec = new Month(12);
      System.out.println("Name: " + dec.getName());
      System.out.println("Expected: December");
   }
}