I have a class called Person. It has the following attributes; It has 2 attributes, ID, and Telephone. 1 person can have many
Person
attributes
ID
Telephone
You need to iterate the array, check the persons one by one for phone number, and when you get to the one you need just assign it to a variable.