Developer Tools
JDeveloper
In the Create Java Class dialog, the name you specify in the Name field will become the file name for the class. The package name you enter in the Package field (or select from the Package Browser) will become the default package for subsequent Java classes that you create in the project.
In the first Java class, you will create a JavaBean object with two properties,
batchId and
orderedQuantity.
In the second Java class, you will create an
enum type
FreightDestination with four
enum constants, each constant being declared with one parameter to be passed to the constructor when it is created.
In the third Java class, you will create an
enum type
CustomerCode, with five
enum constants, each constant being declared with one parameter to be passed to the constructor when it is created. In the third class you will also add a method to calculate a discount based on an
enum constant.
Copyright © 1997, 2009, Oracle. All rights reserved.