title: I want to add to an arrayList through user input
body: <p>I have been trying to create a small program that prompts the user for input that takes an employee name and salary adds it to an arrayList, then displays options on the screen(e.g 0: quit, 1: add, 2: display), reads the input then proceeds based on the input.Displaying would just be(e.g Last Name: Smith Salary: £14000. Just need some help to point me in the right direction. I currently have 3 classes Employee, Employee List and Employee Test.</p>
  
  <p>This class prompts the user input.</p>
  
  <pre><code>import java.util.Scanner;
  public class Employee {
  
  private String Last_Name;
  private int Salary;
  
  public Employee(){
      Scanner inputValues = new Scanner(System.in);
  
      System.out.print("Enter employee last name: ");
      Last_Name = inputValues.next();
  
      System.out.print("Enter Employee Salary: " + "£");
      Salary = inputValues.nextInt();
  }
  
  public void Display(){
  
      System.out.printf("Name: " + Last_Name + " " + "Salary: " + Salary);
      System.out.println("\n");
  }
  }
  </code></pre>
  
  <p>This class is supposed to be adding the employees to an arraylist but im not sure if im doing it correctly.</p>
  
  <pre><code>import java.util.ArrayList;
  import java.util.List;
  import java.util.Scanner;
  
  public class EmployeeList extends Employee{
  
  private List &lt;Employee&gt; employee =  new ArrayList&lt;Employee&gt;();
  
  
   public EmployeeList(Employee person) {
       employee.add(person);
  }
  
   public void DisplayEmployees(){
       System.out.println("Employee:"  + employee.size()); 
       displayList(employee);
   }
  
   public static void displayList(List employee) {
  
        } 
  }
  </code></pre>
  
  <p>This is where the main method is</p>
  
  <pre><code>import java.util.Scanner;
  
  public class EmployeeTest {
  
  
  public static void main(String[] args) {
  
      Employee employee = new Employee();
      employee.Display();
  
      EmployeeList empList =  new EmployeeList(employee);
      empList.DisplayEmployees();
  
      Scanner scanner = new Scanner(System.in); 
      System.out.println("0: quit, 1: add, 2: display");
      String employees = scanner.next(); 
  
     /* if (employees.equals("1")){
       //not sure how to go back to displaying the user prompts
  
          break;
      } */
  
  }
  
  }
  </code></pre>