Java Reference
In-Depth Information
The output from the program is shown here:
Notice that this program uses a for-each style for loop to cycle through the array of con-
stants obtained by calling values( ) . For the sake of illustration, the variable allTransports
was created and assigned a reference to the enumeration array. However, this step is not
Search WWH ::




Custom Search