Learn about the concepts of Java packages, variables, and how objects interact with each other through methods.
In two articles, Wombat object basics and Wombat basics, you learned the basics of objects, classes, methods, and language and grammar. In part 3rd of the Junior Developer series, you'll learn how to write Java applications that rely on other Java classes (or Java APIs), what variables are, how to use variables, and how objects interact with each other through methods.
In this article, you need to install the following software on your computer:
Java SE Software
Greenfoot
This article is intended for any reader who is interested in Java programming, without programming experience. Before you begin to read this article, it is recommended that you read and follow the instructions in the Wombat object basics and Wombat class basics.
Viewing packages and variables in Ants
In this tutorial, open the Ants scene by using the Scenario menu, and then select Open. You should see the Scenarios folder. Select ants and click Open, as shown in Figure 1:
Figure 1. Open Ants Scene