Yeah, printing them out is simply a matter of using an if:
for (Student s : studentArray)
if (s != null)
Unless the array is primitive, you must use a null check whether you use while, for or foreach style syntax. Otherwise it will issue a null pointer exception when you attempt to print it out.