stairsweeper
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
stairsweeper [2019/08/23 09:41] – created frchris | stairsweeper [2019/08/23 09:43] – [StairSweeper.java] frchris | ||
---|---|---|---|
Line 7: | Line 7: | ||
{ | { | ||
- | public StairSweeper(int street, int avenue, Direction direction, int beepers) { | + | public StairSweeper(int street, int avenue, |
+ | Direction direction, int beepers) | ||
+ | | ||
super(street, | super(street, | ||
} | } | ||
- | public void climbStair() { | + | public void climbStair() |
+ | | ||
turnLeft(); | turnLeft(); | ||
move(); | move(); | ||
Line 19: | Line 22: | ||
} | } | ||
- | private void turnRight() { | + | private void turnRight() |
+ | | ||
turnLeft(); | turnLeft(); | ||
turnLeft(); | turnLeft(); |
stairsweeper.txt · Last modified: 2023/08/22 09:50 by frchris