01:198:111 Lecture Notes - Lecture 18: Object Copying
01:198:111 verified notes
18/28View all
Document Summary
Solution is to make array size dynamic. Insert function insert(int[][] a, int index, int n){ for(int i = a. length - 2; i >= index; i--) a[i+1] = a[i]; a[index] = n; } Remove function remove(int[][]a, int index){ for(int i=index; i