A (175)

(Tuis.) #1

162 CHAPTER 5: Introduction to Java: Objects, Methods, Classes, and Interfaces



  1. As you can see in Figure 5-5, a New Java Class dialog allows you to click
    the Browse button next to the Package field to open the Package Selection
    dialog, where you can select the absolute.beginners.hellouniverse package,
    and click the OK button. Then all you have to do is to Name the class
    Galaxy, and then click the Finish button.


Figure 5-5. The New Java Class dialog and the Package Selection sub-dialog accessed using the Browse button



  1. After you click Finish, Eclipse will create the Galaxy.java class Java
    structure, which is shown in Figure 5-6.

Free download pdf