I am trying to add up all the x and y coordiantes respectively from points of ArrayList.
public static ArrayList knots = new ArrayList<Point>();
public Point centroid() {
Point center = new Point();
for(int i=0; i<knots.size(); i++) {
????????????????????
return center;
}
How do I find the centroid ??
}