Restaurant Employee Tracking Systems Java Would Like Print Stored Employee Name Informatio Q37285544

I have a restaurant employee tracking systems in java… I wouldlike to print out the stored employee name and informations fromthe main method()

else if(choice ==3){

Employee e1= new Employee();
  
   ArrayList <Employee> empList = newArrayList<Employee>();
   System.out.println(“Please enter your ID: “);
   int empID = input.nextInt();
   e1.setEmpID(empID);
   empList.add(e1);
     
   System.out.println(“enter your name: “);
   String empName = input.next();
   e1.setName(empName);
   empList.add(e1);
   System.out.println(“enter the amount sold: “);
   double empSold = input.nextDouble();
   e1.setAmountSold(empSold);
   empList.add(e1);
   System.out.println(“Please enter wage “);
   double empWage= input.nextDouble();
   e1.setWage(empWage);
   empList.add(e1);
   System.out.println(“Please enter the hours you haveworked: “);
   double empTimeWork= input.nextDouble();
   e1.setTimeWorked(empTimeWork);
   empList.add(e1);
   System.out.println(empList);

}

I do not how many arbitrary employee # i have but iwould like

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.