I\'ve got a very annoying problem with some code throwing an IndexOutOfBoundsException and I really cannot understand why. The logcat points to the \"addTimetableItem\" of the f
i
You are looping past the last element in the array. Why the +1?
+1
If there are N elements in the array, then the elements are from indexes 0 through to N-1.
N
0
N-1
So it should be:
for(int i=0; i