import java.util.*; public class Corporation { public static void main(String[] args) { //HourlyEmployee hourly = new HourlyEmployee(); //SalaryEmployee salary = new SalaryEmployee(); Scanner bbq = new Scanner(System.in); boolean go = true; while(go = true) { int menuChoice; StringBuffer hourlyOrSalary = new StringBuffer(); hourlyOrSalary.append("Choose from below:\n"); hourlyOrSalary.append("1. New Hourly Employee\n"); hourlyOrSalary.append("2. New Salaried Employee\n"); hourlyOrSalary.append("Enter choice: "); System.out.print(hourlyOrSalary.toString()); menuChoice = bbq.nextInt(); if(menuChoice == 1) { //do stuff } else if(menuChoice == 2) { //do stuff } else { System.out.println("Error: enter a valid choice. You entered: " + menuChoice); } } //methods //public salary getSalaryEmployee() //{ // return salary;//remove later //} //public hourly getHourlyEmployee() //{ // return salary;//remove later //} } }