Searching through an array of objects
807606Mar 27 2007 — edited Mar 28 2007Hi, 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.