Code Monkey home page Code Monkey logo

javaoptionalassignmentii's Introduction

JavaOptionalAssignmentII

Create a Phone Book Class and initialize a map in the PhoneBook class with Name and Phone Numbers. Create a PhoneBookCrawler class that uses the PhoneBook

Exercise 1: Implement findPhoneByName in PhoneBook class that returns an optional. (No streams)

Exercise 2: Implement findPhoneByNameAndPunishIfNothingFound in PhoneBookCrawler that uses the implementation from exercise 1

Exercise 3: Implement findPhoneByNameAndPrintPhoneBookIfNothingFound in PhoneBookCrawler that uses the implementation from exercise 1

Exercise 4 Did you receive a Hello message from the PhoneBook's toString method? If yes, reimplement the exercise 3 to avoid it get's printed. If no, reimplement exercise 3 to have it actually printed.

Exercise 5 Can you reimplement exercise 2 using streams instead of using PhoneBook's findPhoneNumberByName

Exercise 6 Can you reimplement exercise 3 using streams instead of using PhoneBook's findPhoneNumberByName

Exercise 7 Implement findNameByPhoneNumber in PhoneBook class that returns an optional. Implement findPhoneNumberByNameOrNameByPhoneNumber in PhoneBookCrawler class. First search the phone book by name. If that returns nothing search the phone book by phone number.

Remember to Write the Unit test Cases Stick to the Coding Standards Exception Handling 0 CheckStyle or FindBugs Issue

javaoptionalassignmentii's People

Contributors

imnitin28 avatar

Watchers

 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.