90919293949596979899100
CPoint maxP = points.getCoordinate(0); int maxI = 0; for (int i = 1, n = points.size(); i < n; i++) { CPoint p = points.getCoordinate(i); if (p.compareTo(maxP) > 0) { maxP = p; maxI = i; } }