LinkedList overview

LinkedList is a doubly-linked list implementation of the List and Deque interfaces Hence it provides linked list data structure Important features of LinkedList 1) LinkedList maintains the insertion order similar to ArrayList 2) LinkedList contains duplicate elements 3) It’s a non-synchronized class 4) Elements can be searched in forward and backward directions 5) Searching an […]

Share this article on

Size of ArrayList

Its very important to know the size of ArrayList as it is required in most of the times while coding We have size() method in ArrayList class which helps us to determine the size of ArrayList Size is the number of elements in that ArrayList public int size() public int size() Example : import java.util.*; […]

Share this article on
< Previous Next >