Creating a set of points
in
Programming Questions
•
2 years ago
I've been using Lee Byron's mesh library and basically I want to create a set of points.
- for(int c=0;c<coordinates.length;c++)
- {
- OUTPUT.println(coordinates[c][0] + "," + coordinates[c][1] + "," + p + "," + "Coordinate");
- set.add(point(coordinates[c][0],coordinates[c][1]));
- }
I get this error:
The method add(Object) in the type Set is not applicable for the arguments (void)
I was curious as to how I could either turn these coordinates into an object, or work around whats happening here and just plug the points into the set.
1