I am having issues with getting the TestPolygon.java to run correctly. THe "//Constructor that creates four polygons with any value that are not equal to the defualt value or to each other Polygon[] P_array = {new Polygon(10,5.0,1.0,3.0), new Polygon(6,3,2,5), new Polygon(4,11,4,3), new Polygon(5,12,6,7)}; " line of my code keeps coming back with an error for every new statement saying that "no suitable constructor found for Polygon(int,double,double,double). Picture is attached.
/* File: Polygon.java
* Author: Darren Pirtle Jr.
* Date: November 16, 2016
* Purpose: Design a Java class
* named Polygon
*/
import java.lang.Math;
public class Polygon {
private int numSides;
private double sideLength;
private double xCoord;
private double yCoord;
private double apothem;
private double perimeter;
//Constructor that creates a Polygon using the defaults
public Polygon(){
numSides = 4;
sideLength = 10.0;
xCoord = 0.0;
yCoord = 0.0;
apothem = 5.0;
}
//Constructor that uses the specified numbers
public Polygon(int s,double sL,double x,double y,double a, double p){ </