ArrayList In Java + Notes | Java Placement Course

ArrayList In Java + Notes | Java Placement Course

Apna College

2 года назад

610,854 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@prajwal8371
@prajwal8371 - 29.12.2023 23:23

Legend Watching at 2X

Ответить
@PRIYANKAKUMARI-yf9hu
@PRIYANKAKUMARI-yf9hu - 29.12.2023 19:28

🥳 Good to learn it 🙇

Ответить
@hugesman4836
@hugesman4836 - 20.12.2023 16:15

Thank you so much Shraddha Didi you saved me from getting depressed!!

Ответить
@komitpalji...3614
@komitpalji...3614 - 27.10.2023 15:13

I use full ArrayList type 😊

Ответить
@vi_shalkumar10
@vi_shalkumar10 - 26.10.2023 19:02

Most weird thing when she moves her hand too much.

Ответить
@Arjun-kc9te
@Arjun-kc9te - 02.10.2023 11:43

omg

Ответить
@AnadiHirpara
@AnadiHirpara - 28.09.2023 03:27

What is the difference between Collection vs Collections...?
please anyone explain!!

Ответить
@hrutikbhalerao
@hrutikbhalerao - 22.09.2023 21:28

Nice

Ответить
@thoughthubbysrabon-podcast
@thoughthubbysrabon-podcast - 19.09.2023 19:21

Thank you Didi..:)

Ответить
@sujandaku15
@sujandaku15 - 19.09.2023 00:18

.

Ответить
@nikhilyashwantrao3827
@nikhilyashwantrao3827 - 27.08.2023 20:31

Explanation Level 💯
After your explanation about arryalist i have come to know about arraylist perfectly..🫡

Ответить
@divyanshchauhan770
@divyanshchauhan770 - 25.08.2023 09:10

Heap nahi karaya sayad

Ответить
@mitchellstarc56
@mitchellstarc56 - 20.08.2023 19:47

Can u teach in English it very useful 😅

Ответить
@pranjalkastwar2199
@pranjalkastwar2199 - 15.08.2023 09:31

Descending order me sorting kaise kare??

Ответить
@amitgupta624
@amitgupta624 - 09.08.2023 19:15

Thank you didi

Ответить
@Saikiran26243
@Saikiran26243 - 08.08.2023 11:44

madam can't access the notes

We're sorry. You can't access this item because it is in violation of our Terms of Service.

Ответить
@hardikkk01
@hardikkk01 - 30.07.2023 11:39

Hii Dii I have a prblm in ArrayList when I type the same code according to you it show an error in which it say { This type ArrayList is not generic, it cannot be parameterized with arguments <Integer>} I have tried many times can you pls help me .........

Ответить
@amrajamarnath7952
@amrajamarnath7952 - 20.07.2023 09:00

No lag clear cut explanation without much theory

Ответить
@rishibharadwaj68
@rishibharadwaj68 - 19.07.2023 11:49

I think you explain well but there is a lack on concepts which I see. When we are teaching, we need to be much responsible and very clear on our concepts. I went through the video to understand the internal working on ArrayList then I went back to the open code of Java and checked the implementation. Arraylist internally uses ARRAY which is 100% continuous. However here instead of the values as primitives, each index stores the reference to an object in the memory. Thus, we call it stores the data in non-continuous way. But array in itself is continuous in Arraylsit too. Secondly, the YES we need to copy all the elements when an Arraylist goes beyond size and hence it is costly. Only thing which is better here is instead of copying the values we copy the references to the new Array. Thus, the previous objects stay in memory and need not be moved but the older array has to be copied to the newer one and older array becomes eligible for garbage collection.

Not to demoralise; you are doing great, but please study and prepare the things thoroughly when you post it as a lecture as it may give incomplete/incorrect concepts to the viewers.
Thanks for the video though. All the best!

Ответить
@DanyloLagos
@DanyloLagos - 16.07.2023 18:27

Didi you're far better than any idiot on you tube creating junk videos

Ответить
@imharshdani
@imharshdani - 16.07.2023 06:38

Why didn't we write Boolean in the closing generics (on the right side)?

Ответить
@anushkayadav8443
@anushkayadav8443 - 12.07.2023 14:13

I Liked the whole lec shraddha di❤thank you so much for such Content.

Ответить
@anubhv0001
@anubhv0001 - 08.07.2023 09:00

over perfection in your videos !

Ответить
@karthikshyamala8905
@karthikshyamala8905 - 20.06.2023 12:23

Hi ...why don't teach in English...so that everyone can understand... please make the tutorials in English....

Ответить
@SaravananBAS-om2zr
@SaravananBAS-om2zr - 15.06.2023 18:24

hi, can you tell me how to add resultset of 500 rows inside a list? and pass it to view page. I have added my own model object in list in dao class and send it to controller. From controller, i added the list values in addAttribute method of Model class and fetch it in jsp page. I am facing the issue, it shows the last record of my resultset 500 times in view page..plz suggest on it....and i am printing my list it shows like my model class name 'DK_Model'@367387fe44 like something while printing the list

Ответить
@harshit.6002
@harshit.6002 - 10.06.2023 11:26

Didi please library classes pe vdo banao class 10th ke liye

Ответить
@anithkumar1524
@anithkumar1524 - 25.05.2023 15:24

you are so Kind, I think you looks like Punjabi? Isn't it? Though have to say this, You were Rocking, Utub has lot of platforms,channels to learn new things,but You hven done Great job, More informative,developing, thank you & team,🥰

Ответить
@sabiqvlog538
@sabiqvlog538 - 29.04.2023 09:28

public class CreateArrayList<T> {

T data[];
int size;

CreateArrayList()
{
this(1);
}
CreateArrayList(int inicap) {
if(inicap>0)
data=(T[]) new Object[inicap];
else if(inicap==0)
data=(T[]) new Object[inicap];
else
throw new IllegalArgumentException();
}
public void add(T value)
{
ensureCapacity();
data[size]=value;
size++;
}
public void ensureCapacity() {
if(data.length<=size)
{
int oldcap=data.length;
int newcap=oldcap+1;
T temp[];
temp=(T[]) new Object[newcap];

for (int i = 0; i < data.length; i++) {
temp[i]=data[i];
}
data=temp;
}
}

public void add(int index,T element)
{
if(index>size || index<0 )
throw new ArrayIndexOutOfBoundsException();

ensureCapacity();
for (int i = size-1; i >=index; i--) {
data[i+1]=data[i];
}
data[index]=element;
size++;
}

public T get(int index)
{
if(index>size || index<0 )
throw new ArrayIndexOutOfBoundsException();

return data[index];
}

public void remove(int index)
{
if(index>size || index<0 )
throw new ArrayIndexOutOfBoundsException();

for (int i = index; i < data.length-1; i++) {
data[i]=data[i+1];
}
size--;
data[size]=null;
}

public int indexOf(T v)
{
for (int i = 0; i < data.length; i++) {
if(data[i]==v)
{
return i;
}
}
return -1;
}

public boolean contains(T find)
{
if(indexOf(find)!=-1)
return true;
else
return false;
}

public String toString()
{
for (int i = 0; i < data.length; i++) {
if(data[i]!=null)
System.out.print(data[i] + "\t");
}
System.out.println();
return super.toString();
}
public static void main(String[] args) {
CreateArrayList<Integer> c=new CreateArrayList(3);
c.add(5);
c.add(9);
c.add(4);
c.add(7);
c.add(2,6);
System.out.println(c);
/*
* c.remove(2);
* System.out.println(c);
*/
System.out.println(c.indexOf(4));

}

}

Ответить
@shivammishra.10
@shivammishra.10 - 26.04.2023 08:54

Is Array list non contiguous or contiguous?

Ответить
@sunilgokhare2854
@sunilgokhare2854 - 25.04.2023 09:21

Great 👍👍

Ответить
@chamoli1987
@chamoli1987 - 15.04.2023 19:08

Too good, explained the concepts very well

Ответить
@AvinashKumar-ps4tw
@AvinashKumar-ps4tw - 11.04.2023 10:50

At 3 : 21 min - as you mentioned ArrayList is non -contiguous.?? but
ArrayLists use contiguous memory. All elements in the ArrayList are located next to each other in the same memory space. This is why retrieving an element from an ArrayList is so fast.

Ответить
@kishnersuperbannumiyer7383
@kishnersuperbannumiyer7383 - 03.04.2023 20:28

Thanku bhen

Ответить
@srabondebnath3479
@srabondebnath3479 - 31.03.2023 00:39

Thank you Didi..

Ответить
@arpitgupta1816
@arpitgupta1816 - 30.03.2023 03:56

I love the energizing background music at start...

Ответить
@ripulagrawal1306
@ripulagrawal1306 - 27.03.2023 23:12

In one of interview I have been asked question on default size of collection, so would be better if you will cover same topic along with one explanation on why collection framework use only Objects not primitve data type? @apnacollege

Ответить
@02_apshannakandulna_it71
@02_apshannakandulna_it71 - 17.03.2023 05:04

Thank you ma'am

Ответить
@anilkumarmaurya7436
@anilkumarmaurya7436 - 12.03.2023 11:42

Very helpful this video

Ответить
@dotencoma
@dotencoma - 05.03.2023 14:43

Thank You😇

Ответить
@schwobbel
@schwobbel - 04.03.2023 19:30

i she speaking english?

Ответить
@Sonu-jx6jl
@Sonu-jx6jl - 03.03.2023 21:37

Kaash mujhe starting se aisi hi teacher mili hoti toh mai top karta har baar

Ответить
@maxwelltsangya3810
@maxwelltsangya3810 - 16.02.2023 22:41

Next time try to title your so called content in the language used in the video. I'm tired of this nonsense

Ответить
@AnkitSingh-cj8cm
@AnkitSingh-cj8cm - 14.02.2023 03:56

Arrays in java are not continuous. Please don't provide wrong knowledge here.Kind request!

Ответить
@rajashreedeogade3989
@rajashreedeogade3989 - 31.01.2023 18:03

You said, arraylist is a list of arrays... how can elements be like integers.. can you explain how do we use functions of arraylist to get, update, delete arrays in arraylist..?

Ответить
@novicetrader541
@novicetrader541 - 31.01.2023 13:17

how to sort list of list

Ответить
@nitinpatil5541
@nitinpatil5541 - 30.01.2023 14:59

Thank you so much for informative session 😊

Ответить
@siddheshwarshingare9637
@siddheshwarshingare9637 - 26.01.2023 11:54

teching style is good

Ответить
@ayran9273
@ayran9273 - 25.01.2023 21:56

please dont make the title english if the video is not going to be english

Ответить