I've been working for my final essay, building a Java program to implement a K-means algorithm, and I got stuck on this error:
object cannot be converted to point.
And this is code where my error is
public void plotCluster() {
System.out.println("[Cluster: " + id+"]");
System.out.println("[Centroid: " + centroid + "]");
System.out.println("[Points: \n");
for(Point p : points) { // error
System.out.println(p);
}
System.out.println("]");
}