Skip to content

Commit

Permalink
Revert "Update Swapper.java (#196)"
Browse files Browse the repository at this point in the history
This reverts 8c96033.
  • Loading branch information
ByteLegendBot committed Jul 30, 2023
1 parent 8c96033 commit bb33f85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/bytelegend/Swapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

public class Swapper {
public static void swap(Point point) {
swapin(point);
swap(point.x, point.y);
}

public static void swapin(Point point) {
int temp = point.x;
point.x = point.y;
point.y = temp;
public static void swap(int x, int y) {
int temp = x;
x = y;
y = temp;
}
}

0 comments on commit bb33f85

Please sign in to comment.