Java Reference
In-Depth Information
F
IGURE
1.13
The New Java Application dialog is for specifying a project name and location.
F
IGURE
1.14
A New Java project named demo is created.
F
IGURE
1.15
The New Java Class dialog box is used to create a new Java class.
2. Type
Welcome
in the Class Name field and select the Source Packages in the Location
field. Leave the Package field blank. This will create a class in the default package.
3. Click
Finish
to create the Welcome class. The source code file Welcome.java is placed
under the <default package> node.
4.
Modify the code in the Welcome class to match ListingĀ 1.1 in the text, as shown in FigureĀ 1.16.
Search WWH ::
Custom Search