//This is a partial implementation of a BoundedSizeArray class. It allows one //to create an empty array with any capacity. You can then add elements to the //end of the used part of the array. You can also remove any elements from the //used part of the array. Like all arrays, you can set and get values but only //in the used part of the array. //Author: Patrick Campeau public class BoundedSizeArray { public int capacity; public int length; public int[] data; public BoundedSizeArray(int cap) { capacity = cap; data = new int[capacity]; length = 0; } public void insertEnd(int val) { data[length] = val; length++; } public void removeAt(int ind) { if (ind < length) { for(int x=ind;x