× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
New Topic  
DePeet DePeet
wrote...
Posts: 338
Rep: 0 0
6 years ago
The class Name consists of 4 instance data, String title, String first, String middle, and String last.  The class has a constructor that is passed all 4 String values and initializes the class appropriately. It has 4 methods and each returns one of the four instance data, called returnTitle(), returnFirst(), returnMiddle and returnLast(). 
Name[] addressBook = new Name[100];
is performed. 
Write a method that is passed 4 String parameters corresponding to the title, first, middle, and last of Name, and finds this Name in addressBook and returns the index of where this Name was found, or -1 if the Name was not found.  Assume that addressBook stores n entries (n is an int).
Read 67 times
1 Reply
Replies
Answer verified by a subject expert
StingerStinger
wrote...
Posts: 310
Rep: 4 0
6 years ago
Sign in or Sign up in seconds to unlock everything for free
1

Related Topics

DePeet Author
wrote...

6 years ago
Smart ... Thanks!
wrote...

Yesterday
Brilliant
wrote...

2 hours ago
This site is awesome
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1265 People Browsing
Related Images
  
 267
  
 1091
  
 295
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 352

Previous poll results: Who's your favorite biologist?