Online Java Compiler By
JavaTpoint.com
import java.lang.reflect.Array; public class ReflectArraygetDoubleExample2 { public static void main (String args[]) { double[] arr = new double[]{1.1,2.2,3.3}; double value = Array.getDouble(arr, 1); System.out.println(value); } }
Output