Returns the value of the indexed component in the specified array object, as a
char .

package com.logicbig.example.array;
import java.lang.reflect.Array;
public class GetCharExample2 {
public static void main(String... args) {
Character[] arr = {'a', 'b', 'c'};
char aChar = Array.getChar(arr, 1);
System.out.println(aChar);
}
}
Output
java.lang.IllegalArgumentException: Argument is not an array of primitive type
at java.lang.reflect.Array.getChar (Native Method)
at com.logicbig.example.array.GetCharExample2.main (GetCharExample2.java:14)
at java.lang.reflect.Method.invoke (Method.java:566)
at java.lang.Thread.run (Thread.java:834)