user11191663 wrote:Another possibility is to set up an ArrayList for each thing you want to search on and then every time you add an employee, add the piece of data you want as well, viz:
Since the user will never seen the contents of the arraylist, is there a way that I can search by string last/first name and will get the index location in int if the result is met?
As long as you always add them in the same order, the indexes will match, so you could do something like
Empl e = new Empl(1,"Jim", "Balu",88); list.add(e); firstNames.add(e.firstName());
to return the index of the name, if it's there (if not, it will return -1).
ians = firstNames.indexOf(nameToFind);