Code Monkey home page Code Monkey logo

personclass's Introduction

Ceated a program that generats a list of people along with their first name, last name and their e-mail. It sorts them out to make it easier for the user to view the list of names in alphabetical order. 
Then implemented a method that would help the user find someone specifically by asking to input their first or last name. If the program finds the person the user is searching for it prints out their information (first, last name and e-mail)

Instead of asking the user to input names to populate the list, I tested the program with an array of size 10 that included names. Then asked user to input a name to serach for in the list.

----------------------------Test Results----------------------------------------
luis@ubpc:~/Desktop/Project$ java personDriver 
List of people
--------------
Ball, Orange E-mail: [email protected]
Luna, Luis E-mail: [email protected]
Cat, Apple E-mail: [email protected]
Dog, Pear E-mail: [email protected]
Fruit, Mango E-mail: [email protected]
Fred, Zebra E-mail: [email protected]
Kite, Yoyo E-mail: [email protected]
Gaga, Lady E-mail: [email protected]
Knowles, Beyonce E-mail: [email protected]
Beans, Rice E-mail: [email protected]
Luna, Luis E-mail: [email protected]

List of people when sorted
Ball, Orange E-mail: [email protected]
Beans, Rice E-mail: [email protected]
Cat, Apple E-mail: [email protected]
Dog, Pear E-mail: [email protected]
Fred, Zebra E-mail: [email protected]
Fruit, Mango E-mail: [email protected]
Gaga, Lady E-mail: [email protected]
Kite, Yoyo E-mail: [email protected]
Knowles, Beyonce E-mail: [email protected]
Luna, Luis E-mail: [email protected]
Luna, Luis E-mail: [email protected]

Input name or last name to search for: 
Luna

The name Luna was found in the list: Luna, Luis E-mail: [email protected]

The name Luna was found in the list: Luna, Luis E-mail: [email protected]




personclass's People

Watchers

Luis Luna 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.