Terminal

The cat has some other methods which we can try. Right-click on the cat1 object again and select the void listen() method. This will print a message on the terminal, which will appear. Terminal is an old computing word, which refers to a place where you can print text output, and listen for text input. You should see a message saying that the cat meowed at you.

Return to the main BlueJ window, right-click the cat1 object again, and this time choose the void play() method. The terminal will appear again, asking you what you will get the cat to chase. You will see that the input field is active. Type in what you want, for example: toy (note that you don't need quotes in the terminal), and press enter. You will then see a message saying that the cat chased the toy.

Minimise or close the terminal window, and return to the main BlueJ window.

Part 3