java making a char code example
Example 1: 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 2: java manipulate alphabet list
String middle3 = (string.length() < 3) ? null :
string.substring(string.length() / 2 - 1, string.length() / 2 + 2);
Example 3: java manipulate alphabet list
String middle3 = (string.length < 3) ? null : string.substring(string.length / 2 - 1), string.length / 2 + 2);