title: How to check a certain index of an array contains a value or not
body: <p>I have 4 objects to place in an array. I can't place it if the index contains any other object. How should I check if there is an element or nothing in a certain index of an array in java. Example ;<br>
  I have an array called numList and it contains some values. I want to add another number to index 6. For this I have to check numList[6] contains a value or not.</p>