Java tutorial
import java.lang.reflect.Array; import java.util.Arrays; public class Main { public static void main(String args[]) { long[] array = new long[] { 1L, 2L, 3L }; Array.setLong(array, 1, 9999999999999L); System.out.println(Arrays.toString(array)); } }