A labeled point has an x- and y-position and a label.

Implement the toString method of the LabeledPoint class.

Complete the following file:

LabeledPoint.java

// TODO: implement toString public class LabeledPoint { private double x; private double y; private String label; /** Constructs a labeled point with a given position and label. @param anX the x-coordinate of the point @param aY the y-coordinate of the point @param aLabel the label of the point */ public LabeledPoint(double anX, double aY, String aLabel) { x = anX; y = aY; label = aLabel; } . . . public static String check(double x, double y, String s) { LabeledPoint lp = new LabeledPoint(x, y, s); return lp.toString(); } }