Implement a class Polygon that contains an array list of Point2D.Double objects. Sup port methods: Draw the

Question:

Implement a class Polygon that contains an array list of Point2D.Double objects. Sup port methods:

image text in transcribed

Draw the polygon by joining adjacent points with a line, and then closing it up by joining the end and start points. Write a graphical application that draws a square and a pentagon using two Polygon objects.

Step by Step Answer:

Related Book For  answer-question
Question Posted: