I have a question asking to read indexes and check if its empty and if it is and its at a position greater than or equal to 67(starting from 0), I must print out the element located at index i-67. The problem I'm having I believe is checking if an index contains anything
for(int i = 0; i <= s.size()-1; i++){
if(s.get(i) == null && i >= 67)
w.println(s.get(i-67));
}
I read elsewhere that maybe a hashtable would be better for doing this but I for the life of me can't understand why.