This array can hold 3 objects (CAPACITY).
CURRENT POSITION is where you are going to add your object.
You could try something similar.
public void addStudent(Student student) {
if (CURRENT_POSITION < CAPACITY) {
students[CURRENT_POSITION] = student;
CURRENT_POSITION++;
}
}