milewalker
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
milewalker [2019/08/23 09:28] – created frchris | milewalker [2019/08/23 09:31] – frchris | ||
---|---|---|---|
Line 2: | Line 2: | ||
<code java> | <code java> | ||
- | public class MileWalker extends Robot // note the capital letters for the class name | + | import kareltherobot.*; |
+ | |||
+ | public class MileWalker extends Robot | ||
+ | // note the capital letters for the class name | ||
{ | { | ||
- | public void moveMile() | + | public MileWalker(int street, int avenue, |
+ | Direction direction, int beepers) | ||
+ | { | ||
+ | super(street, | ||
+ | } | ||
+ | |||
+ | | ||
{ | { | ||
move(); move(); move(); move(); | move(); move(); move(); move(); |
milewalker.txt · Last modified: 2019/08/23 09:37 by frchris