The Class LineSegmentCollection
import java.applet.*;
import java.awt.*;
import java.util.*;
public class LineSegmentCollection extends Applet {
Vector theSegments;
public void init() {
theSegments = new Vector();
for (int i = 0; i < 10; i++) {
theSegments.addElement(new LineSegment(i, this));
}
}
Previous slide
Next slide
Back to first slide
View graphic version