/**
* A switch statement - Using arrows ->
 */

public class Switch3
{
    public static void main(String[ ] args)
    {
        if (args.length == 0)                       //if no prameters are entered
        {
            System.out.println("Please enter a month name");
            System.exit(0);
        }

        String param = args[0];                     //get param from 1st argument
        param = param.toLowerCase();                //convert to lower case 

        switch(param)                                     
        {
            case "january", "february", "march" ->                                       
                System.out.println("You entered a month in the Winter season");

            case "april", "may", "june" ->                                       
                System.out.println("You entered a month in the Spring season");

            case "july", "august", "september" ->                                       
                System.out.println("You entered a month in the Summer season");
 
            case "october", "november", "december" ->                                       
               System.out.println("You entered a month in the Fall season");

            default -> 
            {
                System.out.println("Entry is invalid");
                System.out.println("Please enter a valid month name");
            }
        }                               
    }
}