Java Reference
In-Depth Information
To accomplish this, you will use the statement sequence shown here:
3.
Next, the program obtains the user's selection by calling
System.in.read( )
, as shown
here:
4.
Once the selection has been obtained, the program uses the
switch
statement shown
here to display the syntax for the selected statement.