HRSystem_5/src/Organization/HireTransaction.java
// display the main menu and return an input selection
display the main menu and return an input selection
display the main menu and return an input selection
private int displayMainMenu()
   {
      try{
      screen.displayMessageLine( "\nChoose an Employee:" );
      screen.displayMessageLine( "1 - Manager" );
      screen.displayMessageLine( "2 - Administrator" );
      screen.displayMessageLine( "3 - Engineer" );
      screen.displayMessageLine( "4 - Exit\n" );
      screen.displayMessage( "Enter a choice: " );
      return keypad.getInput();
       }
       catch(InputMismatchException e)
       {
           System.err.printf("\nException:%s\n",e);
           keypad.getNextLine(); 
       }
       return 0;
   }
private int displayMainMenu ( ) { try { screen . displayMessageLine ( "\nChoose an Employee:" ) ; screen . displayMessageLine ( "1 - Manager" ) ; screen . displayMessageLine ( "2 - Administrator" ) ; screen . displayMessageLine ( "3 - Engineer" ) ; screen . displayMessageLine ( "4 - Exit\n" ) ; screen . displayMessage ( "Enter a choice: " ) ; return keypad . getInput ( ) ; } catch ( InputMismatchException e ) { System . err . printf ( "\nException:%s\n" , e ) ; keypad . getNextLine ( ) ; } return 0 ; }
display the main menu and return an input selection
display the main menu and return an input selection
// get next input from the user