Java LinkedList Program in Telugu (Java Course in Telugu)

preview_player
Показать описание
Java LinkedList Properties:
→ It can contain duplicate values.
→ It maintains insertion order.
→ It is not synchronized.
→ Manipulation is fast because no shifting is required.

Java LinkedList Constructors:
→ LinkedList() - It creates an empty list.
→ LinkedList(Collection collection) - It creates an object using the elements from the collection.

Java LinkedList Methods:
→ void add(int index, Object element) - Insert the specified element at the specified position
→ void addFirst(Object o) - Insert the given element at the beginning
→ void addLast(Object o) - Append the element at last
→ int size() - Returns the size of the list
→ boolean add(Object o) - Adds an object at the end of the list
→ boolean contains(Object o) - Returns true if the specified object is present in the list
→ boolean remove(Object o) - Removes the first occurence of the specified element
→ Object getFirst() - Returns the first occurence of the specified element
→ Object getLast() - Returns the last occurence of the specified element
→ int indexOf(Object o) - Returns the index position of the first occurence of the specified element
→ int lastIndexOf(Object o) - Returns the index position of the last occurence of the specified element

#javalinkedlist #javacollections #programmingline #rakesh #rake
*******************************************************

Important Links:

*******************************************************

Subscribe my YouTube channels:

*******************************************************
Рекомендации по теме
visit shbcf.ru