Tried this, didn't work. The purpose of this program is to set employees.
Scanner input = new Scanner(System.in);
Employeeobj f1 = new Employeeobj();
Employeeobj f2 = new Employeeobj();
Employeeobj f3 = new Employeeobj();
for (int i = 0; i < 3) {
f(i).firstName = JOptionPane.showInputDialog("Please enter the first name of employee #1");
f(i).lastName = JOptionPane.showInputDialog("Please enter the last name of employee #1");
f(i).jobTitle = JOptionPane.showInputDialog("Please enter the job title of employee #1");
f(i).salary = Integer.parseInt(JOptionPane.showInputDialog("Please enter the salary of employee #1"));
f(i).age = Integer.parseInt(JOptionPane.showInputDialog("Please enter the age of employee #1"));
}
}