Can anyone tell me how to implement `CONTAINS` type feature in java collections. My problem is that I've a list of names.
For e.g:- `List<String> nameList = new ArrayList<String>();`
This list is having, say 100 elements. Lets say I've a name `Paras Anand` in the list. Now if I search for `ara ana` or `ana ara`, I should get the result. Its something like `CONTAINS` clause used in SQL that I want.