Online Java Compiler By
JavaTpoint.com
//import statement import java.lang.reflect.Array; public class ReflectArraygetFloatExample1 { public static void main (String args[]) { float[] array = new float[]{1.1F,2.2F,3.3F}; float value = Array.getFloat(array, 1); System.out.println(value); } }
Output