Question: I want to search a word inside a string :
For example let the String be `"ThisIsFile.java"`
and let i want to search `"File.java"` or `"IsFile"`

This is something like sql `'like'` query but unfortunately i am not 
getting that string from database.

Please suggest me any good solution for this.
Thanks

Answer: 
Do you mean:

```
if (haystack.contains(needle))

```

? Note that this won't respect word boundaries or anything like that - it just finds if one string (`needle`) is a substring in another (`haystack`).
You should be able to use 

```
String.contains("some string");

```