Here you can find the source of put(List
public static void put(List<Object> list, Object object)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static void put(List<Object> list, Object object) { list.add(object);//from w w w. j a v a2 s. co m } public static void put(List<Object> list, int index, Object object) { list.add(index, object); } }