Online Java Compiler By
JavaTpoint.com
public class JavaCharcatertoCharsExample2 { public static void main(String[] args) { // Create a char array ch. int cp = 0x006f; // Create a char primitive ch and assign the value. char[] ch = Character.toChars(cp); // Print the values. System.out.print( "The char array with the UTF-16 representation is given as: " ); for (int i=0; i
Output