task 9 and 10: Added using state class

This commit is contained in:
2023-04-24 17:36:20 +10:00
parent 8ed19d75bd
commit 899497d037
5 changed files with 107 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ public class Coord {
* @param x x coordinate
* @param y y coordinate
*/
public Coord(int x, int y) {
public Coord(int y, int x) {
this.x = x;
this.y = y;
}
@@ -65,6 +65,6 @@ public class Coord {
*/
@Override
public String toString() {
return x + "," + y;
return y + "," + x;
}
}