/** 9/17/2018
  * This program introduces the if else if
  */
import java.util.Scanner;

public class Menu
{
/** This main method 
  */
 public static void main(String[] args) 
 {
   System.out.println("1: Play new game \n2: Continue \n3: Exit\n"
                        + "Enter choice:");
   int choice;
   Scanner sc = new Scanner(System.in);
   choice = sc.nextInt();
     
   if (choice==1) {
     System.out.println("How many players are playing?");
     int numPlayers = sc.nextInt();
     if (numPlayers==1)  // nested if
         System.out.println("new game with 1 player!");
     else
         System.out.println("new game with multiple players");
   }
   else if (choice==2)
     System.out.println("continuing...");
   else if (choice==3)
     System.out.println("Good Bye.");
   else  
     System.out.println("invalid choice.");
 }
}
/**LAB: Read in a number. Print whether the number is positive, negative, 
  * or zero.
  * Time Permitting: read in a year, and print whether it is a leap year.
  */