how to check that a string contains a character in java 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')