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