Guest User

Untitled

a guest
Oct 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public Point[] reverse(Point[] path) {
  2. Point[] newPath = new Point[path.length -1];
  3. int k = 0;
  4. for(int i = path.length - 1; i >= 0; i--) {
  5. newPath[i] = path[k++];
  6. }
  7. return newPath;
  8. }
Add Comment
Please, Sign In to add comment