append to arraylist by index java

Java
arrlist.add(2,25);
// .add(index, content)arrlist.add(2,25);
Source

Also in Java: