check character of string java code example
Example 1: how to check if there is a character in a string java
String.contains()
Example 2: character at index of string java
String str = "Grepper";
char ch = str.charAt(0);
//ch is assigned the value of G