Online Java Compiler By
JavaTpoint.com
import java.lang.reflect.Array; public class ReflectArraygetLongExample2 { public static void main(String[] args) { long arr[] = { 8976567, 87765678, 6765588 }; for (int i = 0; i < arr.length; i++) { long vl = Array.getLong(arr, i); System.out.print(vl + " , "); } } }
Output