Комментарии:
Legend Watching at 2X
Ответить🥳 Good to learn it 🙇
ОтветитьThank you so much Shraddha Didi you saved me from getting depressed!!
ОтветитьI use full ArrayList type 😊
ОтветитьMost weird thing when she moves her hand too much.
Ответитьomg
ОтветитьWhat is the difference between Collection vs Collections...?
please anyone explain!!
Nice
ОтветитьThank you Didi..:)
Ответить.
ОтветитьExplanation Level 💯
After your explanation about arryalist i have come to know about arraylist perfectly..🫡
Heap nahi karaya sayad
ОтветитьCan u teach in English it very useful 😅
ОтветитьDescending order me sorting kaise kare??
ОтветитьThank you didi
Ответить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.
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 .........
ОтветитьNo lag clear cut explanation without much theory
Ответить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!
Didi you're far better than any idiot on you tube creating junk videos
ОтветитьWhy didn't we write Boolean in the closing generics (on the right side)?
ОтветитьI Liked the whole lec shraddha di❤thank you so much for such Content.
Ответитьover perfection in your videos !
ОтветитьHi ...why don't teach in English...so that everyone can understand... please make the tutorials in English....
Ответить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
ОтветитьDidi please library classes pe vdo banao class 10th ke liye
Ответить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,🥰
Ответить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));
}
}
Is Array list non contiguous or contiguous?
ОтветитьGreat 👍👍
ОтветитьToo good, explained the concepts very well
Ответить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.
Thanku bhen
ОтветитьThank you Didi..
ОтветитьI love the energizing background music at start...
Ответить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
ОтветитьThank you ma'am
ОтветитьVery helpful this video
ОтветитьThank You😇
Ответитьi she speaking english?
ОтветитьKaash mujhe starting se aisi hi teacher mili hoti toh mai top karta har baar
ОтветитьNext time try to title your so called content in the language used in the video. I'm tired of this nonsense
ОтветитьArrays in java are not continuous. Please don't provide wrong knowledge here.Kind request!
Ответить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..?
Ответитьhow to sort list of list
ОтветитьThank you so much for informative session 😊
Ответитьteching style is good
Ответитьplease dont make the title english if the video is not going to be english
Ответить