 <p>use list to store your all objects and iterate the list and check if the condition of search is satisfied or not, in your case it is "billy". If you don't want to use list, use an array of object and then iterate with for loop instead. Hope this has helped. Do tell if you want code for this.</p>