Functional Interfaces in Java by Ralph Lecessi

Functional Interfaces in Java by Ralph Lecessi

Author:Ralph Lecessi
Language: eng
Format: azw3, epub, mobi
ISBN: 9781484242780
Publisher: Apress
Published: 2019-02-14T12:37:59.338755+00:00


Listing 9-1 DMV.java

PROGRAM OUTPUT (user input shown in BOLD):Welcome to the Department of Motor Vehicles.

Select and Operation:

0 - Add Driver 1 - Remove Driver 2 - Change Ins

3 - Suspend Lic 4 - Renew License 5 - Add Veh

6 - Remove Veh 7 - Quit:0

Enter licenseId:123

Enter year:2022

Enter month:MAY

Enter day:7

2022-05-07 null ACTIVE []

Select and Operation:

0 - Add Driver 1 - Remove Driver 2 - Change Ins

3 - Suspend Lic 4 - Renew License 5 - Add Veh

6 - Remove Veh 7 - Quit:2

Enter licenseId:123

Enter insurance:INS22

2022-05-07 INS22 ACTIVE []

Select and Operation:

0 - Add Driver 1 - Remove Driver 2 - Change Ins

3 - Suspend Lic 4 - Renew License 5 - Add Veh 6 - Remove Veh

7 - Quit:3

Enter licenseId:123

2022-05-07 INS22 SUSPENDED []

Select and Operation:

0 - Add Driver 1 - Remove Driver 2 - Change Ins

3 - Suspend Lic 4 - Renew License 5 - Add Veh

6 - Remove Veh 7 - Quit:4

Enter licenseId:123

Enter year:2022

Enter month:JUNE

Enter day:11

2022-06-11 INS22 ACTIVE []

Select and Operation:

0 - Add Driver 1 - Remove Driver 2 - Change Ins

3 - Suspend Lic 4 - Renew License 5 - Add Veh

6 - Remove Veh 7 - Quit:5

Enter licenseId:123

Enter make:Honda

Enter model:Accord

Enter year:2017

2022-06-11 INS22 ACTIVE [2017 Honda Accord]

Select and Operation:

0 - Add Driver 1 - Remove Driver 2 - Change Ins

3 - Suspend Lic 4 - Renew License 5 - Add Veh

6 - Remove Veh 7 - Quit:6

Enter licenseId:123

Enter make:Honda

Enter model:Accord

Enter year:2017

2022-06-11 INS22 ACTIVE []

Select and Operation:

0 - Add Driver 1 - Remove Driver 2 - Change Ins

3 - Suspend Lic 4 - Renew License 5 - Add Veh

6 - Remove Veh 7 - Quit:1

Enter licenseId:123

null

Select and Operation:

0 - Add Driver 1 - Remove Driver 2 - Change Ins

3 - Suspend Lic 4 - Renew License 5 - Add Veh

6 - Remove Veh 7 - Quit:7



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.