I'm currently studying Java and not quite sure how to do this.
At the moment I have an employee class
public class employee {
private int empID;
private String empName;
private String job;
//constructors;
public employee(){
    this.empID = 0;
    this.empName = "";
    this.job = "";
}
public employee(int empID, String empName, String job){
    this.empID = empID;
    this.empName = empName;
    this. job = job;
}
//gets;
public int getEmpID(){
    return this.empID;
}
public String getEmpName(){
    return this.empName;
}
public String getJob(){
    return this.job;
}
//sets;
public void setEmpID(int empID){
    this.empID = empID;
}
public void setEmpName(String empName){
    this.empName = empName;
}
public void setJob(String job){
    this.job = job;
}
}
While in my main I created an object array of type employee with a size of 2 and then just increase the array count while letting the user enter some basic information and then another loop to print all the information entered.
import java.util.Scanner;
public class employeeArray {
public static void p(String s) {System.out.println(s);}
public static void main(String args[]){
    Scanner k = new Scanner(System.in);
    int empID, size=0, x=0;
    String empName;
    String job;
    employee [] employees = new employee[2];
    for(size = 0; size < 2; size++)
    {
        p("Employee "+(size+1));
        p("Please enter employee ID number: ");
        empID = k.nextInt(); k.nextLine();
        p("Please enter your name: ");
        empName = k.nextLine();
        p("Please enter your job role: ");
        job = k.nextLine();
        employees[size] = new employee();
        employees[size].setEmpID(empID);
        employees[size].setEmpName(empName);
        employees[size].setJob(job);
    }
    for(x=0; x<2;x++){
        p("Hello employee: "+employees[x].getEmpName()+" your job role is "+employees[x].getJob()+ 
                " your log in ID is 0800"+employees[x].getEmpID());
    }
}
}
I understand how to populate each instance of the object by input but say i wanted to increase the size from 2 to 20 but already have the first 10 'pre-entered' so then i could display the 10 i currently have but still allowed to enter 10 more.
ps. sorry for my long-winded question, blocks of code and poor/lack of terminology. I'm new to this.
 
     
     
     
    