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);