I\'m trying to figure out the best way to search a customer in an ArrayList by its Id number. The code below is not working; the compiler tells me that I am mis
You're missing the return statement because if your list size is 0, the for loop will never execute, thus the if will never run, and thus you will never return.