Thread
:
Searching an arraylist
View Single Post
#
2
(
permalink
)
04-15-2008, 02:09 PM
Chris.Brown.SPE
Member
Join Date: Apr 2008
Location: State College, PA
Posts: 50
Here is the loop to go through each student and check their id against the key. If this doesnt help, it should get you close enough to get the rest of your logic. Let me know.
Code:
for (Student temp : list) { if (temp.getid()==key) { found=true; } }
Chris.Brown.SPE
View Public Profile
Send a private message to Chris.Brown.SPE
Find all posts by Chris.Brown.SPE