Skip to content

engluna/PersonClass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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: exampple1@gmail.com
Luna, Luis E-mail: example2@gmail.com
Cat, Apple E-mail: example3@gmail.com
Dog, Pear E-mail: example4@gmail.com
Fruit, Mango E-mail: example5@gmail.com
Fred, Zebra E-mail: example6@gmail.com
Kite, Yoyo E-mail: example7@gmail.com
Gaga, Lady E-mail: example8@gmail.com
Knowles, Beyonce E-mail: example9@gmail.com
Beans, Rice E-mail: example10@gmail.com
Luna, Luis E-mail: engineerluna@gmail.com

List of people when sorted
Ball, Orange E-mail: exampple1@gmail.com
Beans, Rice E-mail: example10@gmail.com
Cat, Apple E-mail: example3@gmail.com
Dog, Pear E-mail: example4@gmail.com
Fred, Zebra E-mail: example6@gmail.com
Fruit, Mango E-mail: example5@gmail.com
Gaga, Lady E-mail: example8@gmail.com
Kite, Yoyo E-mail: example7@gmail.com
Knowles, Beyonce E-mail: example9@gmail.com
Luna, Luis E-mail: example2@gmail.com
Luna, Luis E-mail: engineerluna@gmail.com

Input name or last name to search for: 
Luna

The name Luna was found in the list: Luna, Luis E-mail: example2@gmail.com

The name Luna was found in the list: Luna, Luis E-mail: engineerluna@gmail.com




About

Program that generates a list of people along w/ their first name, last name, & email. Sorts them out & user is able to find someone specifically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages