java append to array

Java
List<type> arr;
arr.add("value");
Source

Also in Java: