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
Use a for loop to iterate through the list. In the body of the loop, check if the telephone number of the person in the list is the telephone number you're looking for. If yes, then return the person.
for
See The for Statement in Oracle's Java Tutorials.