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