Java tutorial
import java.lang.reflect.Array; import java.util.Arrays; public class Main { public static void main(String args[]) { char[] array = new char[] { 'a', 'a', 'a' }; Array.setChar(array, 1, 'c'); System.out.println(Arrays.toString(array)); } }