import java.awt.Graphics; public class Path { private final int MAXSIZE = 10000; private Increment[] path; private int index; private Increment start; public Path(Increment _start) { path = new Increment[MAXSIZE]; path[0] = _start; index = 1; } /* appends a new element to the path */ public void append(Increment inc) { if(index < MAXSIZE-1) { path[index++] = inc; } } public Path copy() { Path temp = new Path(start); for(int i=1; i