Online Java Compiler By
JavaTpoint.com
//import statement import java.lang.reflect.Array; public class ReflectArraygetCharExample1 { public static void main (String args[]) { char[] arr = new char[]{'J','T','P'}; char vlu = Array.getChar(arr, 1); System.out.println("Value :: " +vlu); } }
Output