We actually have a working example where we cant see the source code so i cant check 100% for sure what way it has to be done. Its definitely arrays alright as thats what where covering now.
Searching for the first null and putting the new entry in sounds like the most efficient way of doing it.
Is there a way to just print out elements that are not null?
I can send you the example if you want i just dont want to share it with every person who views this thread as its an assignment