Arraylist.java is the actual implementation of the features of an arraylist, while TestArray.java is the code written to test the functionality. This code only works on objects.