(1) to define a class Courier DeliveryMan, including name, telephone and distribution area three data members, other set/get methods and constructors,
(2) to define a test class Client, create an array of a Courier, in the form of direct assignment to save not less than five Courier information (data from regional requirements ensure lookup map real), in the console input delivery address, to match the corresponding Courier, output the name and contact information; Silently when mismatch, but many times query, enter the quit after the end of the query,
Running effect is as follows:
Please enter your delivery address: xueyuan road
The Courier service to you is: De
Contact phone number: 1661056879
Please enter your delivery address: day paradise
I'm sorry, didn't find the delivery Courier for you
Please enter your shipping address:
lotus qing roadThe Courier service to you is: James
Contact phone number: 1669871236
Please enter your delivery address: quit
goodbye