title: How to add elements to a fixed size array in Java after the last non-null element?
body: <p>So I have a String array with length 10. I add one or two values and the rest is still null. I want to be able to go back and add more values starting from the first non-null element. How do i get the index number? Currently my logic overwrites the array and starts from the 0 index. Thanks in advance.</p>