Programming and Problem Solving with Java

(やまだぃちぅ) #1
97

Case Study Follow-Up


1.Change the NameDriverapplication so that the two formats are shown in the
opposite order on the screen.
2.In the NameDriverapplication, explain what takes place in the returnstatement
in the method FirstLastFormat.
3.Change theNameDriverapplication so that it also prints the name in the
following format:
First-name Middle-initial. Last-name
Make the change by adding a method to the class Name.
4.Change the NameDriverapplication so that it inputs two names and displays
them in the different formats.
Free download pdf