/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author lawtonb */ import java.io.*; public class TestMenu { public static void main(String args[]) throws IOException { int input; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Student1 s = new Student1(); do { System.out.println("Please enter 1 for setting the ID"); System.out.println("Please enter 2 to show ID"); System.out.println("Enter 3 to exit"); input = Integer.parseInt(br.readLine()); if(input == 1) { s.setID(); } else if(input == 2) { System.out.println(s.getID()); } else { System.out.println("Adios"); } }while(input != 3); } }