Array length and printing out uninitialized array.

I am having trouble setting array length. My program reads in a file and reads integers only. However, I can print out all the integers, but once the last integer is read, it prints out 'null' until the declared array length ends.
below is my code:

1) As noted above, why not use a varaible sized collection instead of a fixed-sized array?
2) If you must use a large fix sized array, (sorry if I'm oversimplifying), why not check if the element is null before printing it? If not null, print it, if null, break out of the for loop.