Giter Club home page Giter Club logo

maven.phonebook's Introduction

Phone Book

  • Objective - To implement a PhoneBook class which maps a name to many phoneNumber
  • Purpose - To establish familiarity Map

Getting Started

  • Fork and clone this repository to complete your lab. Submit each part with a Pull Request for a separate branch.

Instructions:

Building a SimplePhoneBook class

  • Create a simplePhoneBook class that holds a single phone-number per single name

  • You can use an associative data type (one which stores items as keys paired with values).

  • Your PhoneBook class should have the following method

    • void add(String name, String phoneNumber)
      • adds an entry to the composite associate data type
    • void remove(String name)
      • removes an entry to the composite associate data type
    • Boolean hasEntry(String name)
      • removes an entry to the composite associate data type
    • String lookup(String name)
      • returns a phone number for the respective input name
    • String reverseLookup(String phoneNumber)
      • returns a name for the respective input phoneNumber
    • List<String> getAllContactNames()
      • returns a list of all names in this PhoneBook

Building a AdvancedPhoneBook class

  • Create a PhoneBook class that holds names and phone numbers.

  • You can use an associative data type (one which stores items as keys paired with values).

  • Your PhoneBook class should have the following method

    • void add(String name, String phoneNumber)
      • adds an entry to the composite associate data type
    • void addAll(String name, String... phoneNumbers)
      • adds many phone numbers to a single name entry
    • void remove(String name)
      • removes an entry to the composite associate data type
    • Boolean hasEntry(String name)
      • removes an entry to the composite associate data type
    • List<String> lookup(String name)
      • returns a phone number for the respective input name
    • String reverseLookup(String phoneNumber)
      • returns a name for the respective input phoneNumber
    • List<String> getAllContactNames()
      • returns a list of all names in this PhoneBook

maven.phonebook's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.