Programming and Problem Solving with Java

(やまだぃちぅ) #1

476


Here is an example:
When the user enters P, the application displays:
The letter P corresponds to 7 on the telephone.
When the user enters A, the application displays:
The letter A corresponds to 2 on the telephone.
When the user enters D, the application displays:
The letter D corresponds to 3 on the telephone.
When the user enters 2 , the application displays:
Invalid letter. Enter Q or Z to quit.
When the user enters Z, the application quits.
Free download pdf