Hello Me on the robot
In BlueJ create another new class called HelloMe.
To communicate with your robot you need to:
- Type your program into BlueJ.
- import the robot methods
This allows the computer to understand robot commands
- Add comments to identify you and the purpose of your program
- The name of the class is HelloMe
- The name of the method is main
- Name your finch robot for this program
- Tell the robot what to say
- Give the robot time to talk
(otherwise the program will end before the robot has a chance to talk)
- End the program properly to reset the robot for its next program
- Plug the cable into the computer and robot
- Compile your program
Fix any errors
- Run your program
Right-click HelloMe and choose void main(String args) then click OK
< Back to main Finch page