java character type' code example
Example 1: what is a char in java
Character ch = new Character('a');
Example 2: what is a char in java
char ch = 'a';
// Unicode for uppercase Greek omega character
char uniChar = '\u03A9';
// an array of chars
char[] charArray = { 'a', 'b', 'c', 'd', 'e' };
Example 3: java manipulate alphabet list
String middle3 = (string.length < 3) ? null : string.substring(string.length / 2 - 1), string.length / 2 + 2);