164 CHAPTER 5: Introduction to Java: Objects, Methods, Classes, and Interfaces
Right-click on the HelloUniverse project folder and use the Run As ➤ Android Application menu
sequence to run the Nexus One AVD and you will see the application launch and the Hello Universe
screen shown back in Figure 4-15 (no need to duplicate screenshots unnecessarily here) will pop-up
onto your screen. We are running the app here simply to make sure that the application compiles
and runs, and thus that there are no errors in the Galaxy.java code. In the next chapter, we will use
the Galaxy class to create Galaxy objects, which we will display in a user interface design.
Summary
In this fifth chapter, you learned all about the Java programming language, as well as how the
Android platform utilizes Java to facilitate the application development work process, so the
programmers can get involved too!
Figure 5-7. The Galaxy.java class with instance variables, constructor method, and set and get methods