hi Jean-Francois Briere,
Thanks for your response. Your code is using linear search algorithm, i want to know about more effiecient way. I have seen one more algorithm that is java.util.Array.binarySearch(Object[], Object), I just want to confirm that, would it better if i use this logic.