Simple linear search


for each element in collection
  if element matches
    return element
return "sorry"
We can argue the toss about single exit points, but that's a reasonable implementation, yes?

Let's put that into Java.