Skip to content

Commit 0d644d5

Browse files
authored
Merge pull request phishman3579#22 from samyanez94/patch-1
Update List.java
2 parents 4d08a6a + 9032e7d commit 0d644d5

File tree

1 file changed

+1
-0
lines changed
  • src/com/jwetherell/algorithms/data_structures

1 file changed

+1
-0
lines changed

src/com/jwetherell/algorithms/data_structures/List.java

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public boolean add(int index, T value) {
4646
// Shift the array down one spot
4747
System.arraycopy(array, index, array, index+1, size - index);
4848
array[index] = value;
49+
size++;
4950
}
5051
return true;
5152
}

0 commit comments

Comments
 (0)