Required to create a phone book. One of the options that baffles me:
When the user selects "H", the application requires entering the name, phone and city (optional - that is, you can not enter). The application automatically generates an ID for the new entry. Duplicate entries by name and number are not allowed. Java console application.
Please give ideas in implementation.