I have a string array with 24 elements. These 24 represents a crate of soda. The user will first be asked what type and how many sodas the user wants to put inside. Could be one, 20 or all 24.

I then want an option so that the user can print out whats inside the crate, I can do this with a for/foreach loop but I also get the empty ones printed out as well, even tho theyre blank on the console of course, but i either want ONLY the elements with values printet out, and not blank spaces, OR that the blank spaces says empty!

How would i best accomplish this?

Thanks!

\*Edit, Thank you guys, lots of good anwsers I will try my way from here!