import java.awt.*; public class Polygon { private int n; // the number of sides private Point V[]; // the list of vertices public Polygon() { n = 0;} public Polygon(int n) { this.n = n; V = new Point[n]; } public Point getVertex(int i) { return V[i]; } public void setVertex(int i, Point P) { V[i] = P; } public String toString() { String S = "["; for (int i=0; i