java if string contains word code example
Example 1: string contains specific word in java
str_Sample.contains("Example"));
Example 2: check if a string contains a character java
string.indexOf('a')
str_Sample.contains("Example"));
string.indexOf('a')