Hi, im having trouble to read from the keyboard the number of employees the user wants and in allowing the user to input up to 10 employees.
package application;
import dataStructures.*;
import java.util.Scanner;
/* this is the list of employees * */
private LinkedList<String> employeeList;
/* constructor */
public TrainingCourses(){
employeeList = new LinkedList<String>();
}
/*1.
* Main method,
* allowing user to input employees up to 10
* but first asking the user the number of employees
*/
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
System.out.println("Enter the number of employees: ");
int n = scan.nextInt();
employeeList.add(n)
}