public static void main(String[] args) {
                Set<Point> points = new HashSet<Point>();
                points.add(); --- how to add point of "Point" type
                cureAlgor(0.01, 3,points);
}

Point is a pre-defined class.
I want to know what to wrtie in points.add().
Please help!

how to add point of "Point" type

Define an instance of a Point class object and pass it to the add() method:
Point aPt = new Point();
points.add(aPt);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.