{"id":16104971,"url":"https://github.com/dbc2201/contactlists","last_synced_at":"2025-10-04T16:57:44.218Z","repository":{"id":133011562,"uuid":"241146175","full_name":"dbc2201/ContactLists","owner":"dbc2201","description":"template repo for assignment 1","archived":false,"fork":false,"pushed_at":"2022-09-08T10:05:02.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T02:32:40.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbc2201.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-17T15:49:13.000Z","updated_at":"2022-09-08T10:05:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad086ee7-4c2a-4208-9102-a7de6095ae57","html_url":"https://github.com/dbc2201/ContactLists","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/dbc2201/ContactLists","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbc2201%2FContactLists","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbc2201%2FContactLists/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbc2201%2FContactLists/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbc2201%2FContactLists/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbc2201","download_url":"https://codeload.github.com/dbc2201/ContactLists/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbc2201%2FContactLists/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278343085,"owners_count":25971399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T19:07:29.722Z","updated_at":"2025-10-04T16:57:44.189Z","avatar_url":"https://github.com/dbc2201.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contact Lists\n\nCreate a menu-driven program to emulate a Contact Lists Application. \nYou might see such apps in smartphones, you are free to go ahead and take ideas\nfrom your own contact applications.  \n\nYour menu-driven program must look like: \n```\nWelcome to DBC's Contact List App\nPress 1 to add a new contact\nPress 2 to view all contacts\nPress 3 to search for a contact\nPress 4 to delete a contact\nPress 5 to exit program \n```\n\nThe 'Add a new contact menu'\n```\nYou have chosen to add a new contact: \nPlease enter the name of the Person\nFirst Name: Divyansh\nLast Name: Bhardwaj\nContact Number: 1234567891\nWould you like to add another contact number? (y/n): y\nContact Number: 2365987415\nWould you like to add another contact number? (y/n): n\nWould you like to add email address? (y/n): y\nEmail Address: divyansh.bhardwaj@gla.ac.in\n```\nInformation about the 'add a contact menu'\n1. This program will store this `Person` as a type (you have to create a Person class).\nThat means this program uses a list of `Persons`.\n\n```java\npublic class Person {\n    // a field to store the first name\n    // a field to store the last name\n    // a list to store multiple contact numbers (i.e a list of numbers)\n    // a field to store the email address of the person \n}\n```\n---\nThe `view all contacts menu`\n```\n---Here are all your contacts---\n-------- * -------- * -------- * --------\nFirst Name: Jim\nLast Name: Carrey\nContact Number(s): 1547852369, 1452879632\nEmail address: jim@ace.ventura\n-------- * -------- * -------- * --------\n-------- * -------- * -------- * --------\nFirst Name: Robin\nLast Name: Williams\nContact Number: 7845985632\nEmail address: robin@blue.genie\n-------- * -------- * -------- * --------\n```\nInformation about the `view all contacts menu`\n1. No matter how the user adds the contacts in the list,\nthey should always be alphabetically ordered on the basis of the first name.\n2. If the `Person` has only one contact number, then the contact card should show\nthe number field as `Number` only. If the `Person` has multiple contacts, then it\nshould show `Number(s)`.\n--- \n\nThe `search for a contact menu`\n```\nYou could search for a contact from their first names: \nJim\n1 match found!\n-------- * -------- * -------- * --------\nFirst Name: Jim\nLast Name: Carrey\nContact Number(s): 1547852369, 1452879632\nEmail address: jim@ace.ventura\n-------- * -------- * -------- * --------\n```\nInformation about the above menu\n1. There can be multiple `Person` objects with the same name, in such a case, \nshow all the matches.\n2. If nothing is found, print `NO RESULTS FOUND!`\n---\n\nThe `delete a contact menu`\n```\nHere are all your contacts: \n1. Jim Carrey\n2. Robin Williams\nPress the number against the contact to delete it: 1\nJim Carrey's contact deleted from list!\n```\n---\n\nKindly DO NOT create the program in a single `Main` class. Try out some Object-Oriented Programming and\nuse your skills from your software engineering classes as well.\n\nSteps to attempt this assignment:\n1. Fork this repository.\n2. Clone the repository you forked to your computer.\n3. Write code and commit it.\n4. Push the code back to your fork.\n\nPlease feel free to reach out to me in case of any queries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbc2201%2Fcontactlists","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbc2201%2Fcontactlists","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbc2201%2Fcontactlists/lists"}