Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Searching through an array of objects

807606Mar 27 2007 — edited Mar 28 2007
Hi, I am currently working on an assignment where I have to create a class called Persons with data fields of Name(String),age(int),income(int).
All the values including the string values for name and values for income and age are all randomly generated and are stored in an array of objects of class "Persons".
The array size is user specified.

What I must attempt to implement now is to make a search feature that lets the user search through the array of objects for a particular name.
I'm having some bad luck trying to implement this feature.
If anyone can help me, I would greatly appreciate that!

Cheers.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2007
Added on Mar 27 2007
11 comments
291 views