You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
point[] P = new point[7];
P[0] = new point(3.6, 4.5);
P[1] = new point(0, 2);
P[2] = new point(1.75, 6.75);
P[3] = new point(2.4, 3);
P[4] = new point(5.6, 5.8);
P[5] = new point(0.5, 1.5);
P[6] = new point(4.75, 2.1);
In this main code,
cpbook-code/ch7/points_lines.java
Lines 174 to 180 in f8f34ba
i changed into
And the result after
Arrays.sort(P)
isShouldn't the (4.75, 2.10) appear before (5.60, 5.80)?
The text was updated successfully, but these errors were encountered: