<<< toString( ) example, cont. | Index | >>> |
To code a static import statement,
import static murach.business.ShippingType.*;
The code above when a static import is used
ShippingType ground = UPS_GROUND; System.out.println( "toString: " + ground.toString() + "\n" );
<<< toString( ) example, cont. | Index | >>> |