This is part of an ongoing project and up to now i've been able to figure things out. This insallment is:
1. Create an instance array called employees that will hold Employee elements.
2. Modify your loop to create a new element in the employees array for each employee entered by the user.
3. Create an input loop that allows the user to enter up to 26 payments per employee.
4. Allow the user to request a list of payments for a requested employee.
My code just keeps asking for employee name and I am trying to populate the array. I know I am missing it somewhere, can someone help me out? Here's my code
final int ROWS = 3;
final int COLS =26;
String[][] employees = new String[ROWS][COLS];
for(int row=0; row<ROWS;row++){
for(int col=0; col<COLS; col++){
System.out.println("Enter an employee");
String number = input.nextLine();
employees[row][col]=number;
}
}
for(int row=0; row<ROWS;row++){
for(int col=0; col<COLS; col++){
system.out.println(employees[row][col]);
}
}