User Tools

Site Tools


stairsweeper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
stairsweeper [2019/08/23 09:46]
frchris [StairSweeperRunner.java]
stairsweeper [2019/08/23 09:47] (current)
frchris
Line 16: Line 16:
  public void climbStair()   public void climbStair() 
         {         {
- turnLeft(); + // code needed here
- move(); +
- turnRight(); +
- move();+
  }  }
  
  private void turnRight()   private void turnRight() 
         {         {
- turnLeft(); + //coded needed here
- turnLeft(); +
- this.turnLeft();+
  }  }
  
stairsweeper.txt · Last modified: 2019/08/23 09:47 by frchris