Design and implement a Class named Postal that represents information for a postal customer Voting a first
Question:
Design and implement a Class named Postal that represents information for a postal customer Voting a first name, last name and integer representing a zip code Provide a constructor that accepts the first name, last name, and zip code as parameters Provide getters and setters and a toString method representing a String description for a Prostal object. Develop a driver class named PostalList with a main. method that continually prompts a user (until instructed to stop) to enter postal information including the lust name, last name, and zip code Store the postal information for each entry in an array of up to 10 Poste: objects Note you must use an array (e g not an ArrayList) Alter the information has been input and stored. print the total number of Postal objects stored followed by the String representation of each object as sham, in the example session below Note that your zip code must be formatted to print as a 5 digit integer even if the user entered less Than 5 digits.
Enter firstname lastname zip-code: 'airy Seinfeid 23876
Continue) (y/n): y
Enter firstname lastname zip-code: George Costanza 87623
Continue) (y/n): y
Enter firstname lastname zip-code: Elaine genes 23
Continue? (yin): n
Total number of Postal objects: 3
Jerry Seinfeld 23876
George Costanza 87623
Elaine Banes 00021
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang