![]() ![]() It returns true if the list contains the specified element. It is used to return a shallow copy of an ArrayList. It is used to return an array containing all of the elements in this list in the correct order. It is used to return the index in this list of the last occurrence of the specified element, or -1 if the list does not contain this element. It returns true if the list is empty, otherwise false. It is used to fetch the element from the particular position of the list. It is used to enhance the capacity of an ArrayList instance. Void ensureCapacity(int requiredCapacity) It is used to remove all of the elements from this list. It is used to append all the elements in the specified collection, starting at the specified position of the list. It is used to append all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator. It is used to append the specified element at the end of a list. It is used to insert the specified element at the specified position in a list. It is used to build an array list that has the specified initial capacity. It is used to build an array list that is initialized with the elements of the collection c. Public class ArrayList extends AbstractList implements List, RandomAccess, Cloneable, Serializable It is required to use the required wrapper class in such cases.
0 Comments
Leave a Reply. |