/** * This program demonstrates adding and deleting things from arrays * and resizing arrays to make room for more. */ public class SeaTurtleList { /** Data members */ private SeaTurtle[] turtles; public static final int START_SIZE = 5; /** Constructor: initialize data. */ public SeaTurtleList() { } /** Method to make the list twice as big as it is. */ public void resize() { } /** Method to add a turtle to the list. */ public void addTurtle(SeaTurtle ttl) { } /** Method to remove a turtle from the list. */ public void removeTurtleAt(int i) { } /** Method to find a turtle in the list. */ public int findTurtle(SeaTurtle ttl) { } /** Main method- test the class. */ public static void main (String[] args) { // Make some turtles SeaTurtle bob = new SeaTurtle("bob"); SeaTurtle fred = new SeaTurtle("fred"); SeaTurtle george = new SeaTurtle("george"); // Add them to a list SeaTurtleList list = new SeaTurtleList(); list.addTurtle(bob); list.addTurtle(fred); list.addTurtle(george); // Find one and remove it from the list int index = list.findTurtle(fred); list.removeTurtleAt(index); } }