title: Can someone tell me what I'm doing wrong to setup this Robot class in Java?
body: <p>I started learning Java last week so bear with me as I'm just getting the hang of things. I'm trying to make a class that extends the Java Robot class. </p>
  
  <p>I am getting an "Identifier Expected" on this line:  </p>
  
  <pre><code>    public ChanseyRobot(bot)
  </code></pre>
  
  <p>Robot Class: </p>
  
  <pre><code>import java.awt.AWTException;
  import java.awt.Robot;
  import java.awt.event.KeyEvent;
  import java.awt.MouseInfo;
  
  public class ChanseyRobot extends Robot
  {
  private Robot bot;
  
  public ChanseyRobot(bot)
  {
      try
      {
          this.bot = new Robot();
      }
      catch (AWTException e)
      {
          throw new RuntimeException(e);
      }
  }
  }
  </code></pre>
  
  <p>Main Class: </p>
  
  <pre><code>import java.awt.AWTException;
  import java.awt.Robot;
  import java.awt.event.KeyEvent;
  import java.awt.MouseInfo;
  
  public class Main
  {
  public static void main(String args[])
      {
          ChanseyRobot robot = new ChanseyRobot(robot);
      }
  }
  </code></pre>