2
Answers

searching an array of classes

Photo of chris

chris

18y
2.7k
1

I have an array of classes.  Each class contains two values (UserName, and UserID).

I need to search the array such as "give my the ID for username Bob Smith."

Other than looping through each value in the array, is there another way I can search it such as searcharray(username, "Bob Smith")?

Answers (2)