character character java 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' };