title: Finch robot. Java
body: <p>I am currently using loops with the finch robot to test some java codes and have come across an error. Here is my code.</p>
  
  <pre><code>import edu.cmu.ri.createlab.terk.robot.finch.Finch;
  
  public class CS1702_Lab4 {
      public static void main (String[] args) throws Exception
      {
          Finch myf = new Finch();
  
          myf.setWheelVelocities(100,100);
          long before = System.currentTimeMillis();{
          while(System.currentTimeMillis() - before &lt; 5000)
          {
              Thread.sleep(500);
              if (myf.isTapped()) break;
  
          }
          myf.stopWheels();
          myf.quit();
      }
  }
  </code></pre>
  
  <p>On line "myf.setWheelVelocities(100,100)", I am getting the following error;</p>
  
  <ul>
  <li>Syntax error on tokens, delete these tokens
  -Syntax error on token(s), misplaced construct(s).</li>
  </ul>
  
  <p>Any help towards solving this error is appreciated. Many thanks.</p>