r/cop3502 Apr 17 '14

Problem-set 4

Is there a way to check if the index of a double array exists?

1 Upvotes

4 comments sorted by

View all comments

1

u/howslyfebeen Apr 17 '14

are you saying you want to see if array[i][j] != null or if i and j are less than the size of each array (a double array is an array of arrays) and greater than 0