Suppose I have an array which contains the values
String studentList[] = {Paul, null, null};
Now I wanna add another student but make sure before if the student is not already in there.
I have already a for loop which checks if the value is null and if it is then add the student.