LinkedList in Java: Demo & Methods

preview_player
Показать описание
In this video, we will have a look into the linked list and its methods which can be used to create a list for effective insertion and deletion.

Best Hindi Videos For Learning Programming:

►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -

►Django Complete Course In Hindi -

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

isEmpty() - It will tell us whether the array List empty or filled.
subList(first index, last index) - It will give us the elements from the array List from the index specified.

aditimittal
Автор

Harry Bhai.. lots of love...
Apke wise courses se sikhkar me place ho Gaya Hoon.. Jo aap itne ease me sikhate hai koi language difficult nhi lagti.. mere jaise Kai log hai jinhe guidance nhi milta Jo ap de rahe hai.. lots of thanks bhai..🙏 happy teacher's day in advance

shubhamsawant
Автор

I completed whole DSA series from your vedio it's very helpful and mind-blowing series 😊if any one have issue in DSA watch this series

RishitaTomar-kuob
Автор

toArray() as the name says it converts a linked list to a sequential array
code:
Object[] obj = new Object[list.size()]; -> creates an array of the same length of the linkedList
obj = list.toArray(); and done obj is the array containing the same value as of the linkedList

Sujan_Das
Автор

My two methods are:

push(): it generally pushes the given element on top of every other elements like a stack, and it shifts other elements by 1 and a fact to note here that the indexing in linked list starts from (-1)

removeFirstOccurrence(): removes the first occurrence of the given element when compiler reads the linked list from first to last

alnahian
Автор

contains() is a method that is used to check whether the given object as parameter is present there or not.

nikhilgarg
Автор

pop() is mainly used for (LIFO)
int value=number.pop();
System.out.println(value);
listIterator() is mainly used for to print array index starts from your given Array Index
ListIterator<Integer> num=number.listIterator(2);




_sarthak_.
Автор

LinkedList Methods:
toArray() : Returns an array containing all of the elements in this list in proper sequence
getFirst() : Returns the first element in this list
getLast() : Returns the last element in this list.

mishikhan
Автор

Waiting for 1 Million Subscribers, or 1M
Thanks Harry Bhai for free teaching..
I like your all courses specially your roadmaps tutorials...😀😀

ultimatebeast
Автор

.remove(int index): It is a method used in LinkedList which removes an element or object if you like (even though it's wrong) from the index written in the brackets.

MrSun
Автор

I am studying the course... But I am I am waiting for the day when I will catch ap ke kam ke liye ek like to banta hain...❤️❤️

sambitsinha
Автор

Harry bhai python wala course kar ka aunga kuch dino ma java v sikhunga
U r the best👍

aniketkumar
Автор

add​(int index, E element) -> This add the element at a specific position.
listIterator​(int index) -> This show the list in sequential order according to their index.

krishkanojia
Автор

Harry bhai..please comolete data science series. I request you to cover below : -
- deep learning
- text analytics
- NLP
- ANN

sumitsrivastava
Автор

bro don't stop posting please take this course to the advanced java where we can build a game/app including graphics and sound. please!!!

akula
Автор

bhai ek request wagera k baare mai ek informative vedio banao na love ur in-depth knowledge giving channel

_rebantachakraborty
Автор

1. removeFirst() --- List ka first element remove kr dega
2. removeLast() --- List ka last element remove kr dega

3. offer() --- Ek element lega aur usko list ki tail/end me add kr dega
4. offerFirst() --- Ek element lega aur usko list ki starting me add kr dega
5. offerLast() --- Ek element lega aur usko list ke end me add kr dega

javedakhtar
Автор

poll()-> remove and retrieves the head in the list, pollfirst()->remove and retrieves the first element or give null if the list is empty, polllast()-> remove and retrieves the last element.

akshatkotharivines
Автор

Spliterator ka use data ko efficiently divide aur parallel processing ke liye hota hai. Yeh Iterator aur ListIterator ki tarah hi hai, lekin iska main feature yeh hai ke yeh elements ko split (divide) karke multiple threads par process kar sakta hai, jisse performance improve hoti hai.

Beautiful_Princess.
Автор

Only 6k subscriber reaming to make 1m from yesterday I was sharing the link of this channel as much as possible because I just want to see 1m there. His hard work is appreciable man🥇

madhurinavghare
join shbcf.ru