这就是我想要实现的目标:
public ArrayList<Point> startPoints = new ArrayList<Point>();
public ArrayList<Point> endPoints = new ArrayList<Point>();
for (Point startPoint : startPoints) { // <-- How do I do I do 2 at the same time?
g.fillOval(startPoint .x, startPoint.y, 10, 10);
g.drawLine(startPoint .x, startPoint.y, endPoint.x, endPoint.y);
}