string.value of(character) java code example
Example 1: character at index of string java
String str = "Grepper";
char ch = str.charAt(0);
//ch is assigned the value of G
Example 2: how to change char to string
from character to string:
char c = 'a';
String s = Character.toString(c);
//s == "a"