Hello Me on the robot

In BlueJ create another new class called HelloMe.

To communicate with your robot you need to:

  1. Type your program into BlueJ.
    1. import the robot methods
      This allows the computer to understand robot commands
    2. Add comments to identify you and the purpose of your program
    3. The name of the class is HelloMe
    4. The name of the method is main
    5. Name your finch robot for this program
    6. Tell the robot what to say
    7. Give the robot time to talk
      (otherwise the program will end before the robot has a chance to talk)
    8. End the program properly to reset the robot for its next program
  2. Plug the cable into the computer and robot
  3. Compile your program
    Fix any errors
  4. Run your program
    Right-click HelloMe and choose void main(String args) then click OK

 

< Back to main Finch page