//: c17:trash:FillableArrayList.java // From Thinking in Java, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 1999 // Copyright notice in Copyright.txt // Adapter that makes a ArrayList Fillable package c17.trash; import java.util.*; public class FillableArrayList implements Fillable { private ArrayList v; public FillableArrayList(ArrayList vv) { v = vv; } public void addTrash(Trash t) { v.add(t); } } ///:~