add elements on each side of index java code example Example: arraylist add at index arrlist.add(2,25);