Perfect timing! Just started learning about arrays in comp sci 2! Appreciate these comprehensive, compact videos, they make catching up after skipping a class or 2 quick and easy 👍
in equals example, introducing it, you show why not use '==' which is comparator and describe it as checking if two arrays point to same set of data. And that 'equals' method checks if contents of the array are the same. I guess I am still confused what is the difference between pointing to same data vs. containing same data? Wouldn't both be true or both be false. If you can give me an example where one give you true and the other false, I would better understand. Thank you.
Arrays are reference type variables that means they dont store values, they store the directions in memory pointing at the values. So doing arr1 == arr2 is checking if their directions in memory are the same. Using .equals method means you are comparing the content of each array and not their direction so you get true in this case
I think you should explain in greater detail as how you explain diff Array methods seems to be based on the assumption that we have used these before, which might not be the case. For instance, you omit to explain why we use asList. You simply show us how it is used, leaving me quite perplexed about what exactly asList is and what we use it for.
1:52 Can you add an element? I think after passing the array to the list you can't add an element, could you check that out again please? i mean somehow it lets you to add but cant return it...
If you are not making money while sleeping, then you are working for others till end of your life ! Warren Buffett ! an awesome channel and Subbed ! a fellow creator++++
☕Want to master Java? Get my complete Java course: bit.ly/42mQlXE
Perfect timing! Just started learning about arrays in comp sci 2! Appreciate these comprehensive, compact videos, they make catching up after skipping a class or 2 quick and easy 👍
When you started with the asList method I immediately gave you the like.
"And yes I was hungry when I wrote this out" 🤣
in equals example, introducing it, you show why not use '==' which is comparator and describe it as checking if two arrays point to same set of data. And that 'equals' method checks if contents of the array are the same. I guess I am still confused what is the difference between pointing to same data vs. containing same data? Wouldn't both be true or both be false. If you can give me an example where one give you true and the other false, I would better understand. Thank you.
Arrays are reference type variables that means they dont store values, they store the directions in memory pointing at the values. So doing arr1 == arr2 is checking if their directions in memory are the same. Using .equals method means you are comparing the content of each array and not their direction so you get true in this case
I love your contents and appreciate your effort to elaborate subjects in understandable way.
Thank you man. the copyOf() method was helpful.
I think you should explain in greater detail as how you explain diff Array methods seems to be based on the assumption that we have used these before, which might not be the case. For instance, you omit to explain why we use asList. You simply show us how it is used, leaving me quite perplexed about what exactly asList is and what we use it for.
Nice job Sir, Nice explanations about heart of programming in general. See u 👋 in the next life إن شا ء الله.
Do all these methods work for 2D arrays?
Do you think, you could make a tutorial on serialization? Thanks
Yet again another amazing vid, thanks!
8:12 java being java
Thank you bro!
1:52 Can you add an element? I think after passing the array to the list you can't add an element, could you check that out again please? i mean somehow it lets you to add but cant return it...
Yes but the object type needs to change: List list = new Arraylist(arrays.aslist(Array));
When using the list u can just print it instead of looping on
Excellent tutorial
my java couldn't find compare after Arrays. What can I do?
is this array list ? or just normal arrays
Thank you for informations
very Informative
Useful Video 👍🙂 Java Devs!
why is this only on 900+ likes?
Honestly I learned like all of these by doing leetcode
Ok discord link is dead. help
help me i want to learn java
every year i start from zero until multithreading then i stop
I'm 17 and I'm a newbie wanting to learn how to code any tips
Just do it
If you are not making money while sleeping, then you are working for others till end of your life ! Warren Buffett !
an awesome channel and Subbed ! a fellow creator++++
Good explanation, but I still don't understand it after watching it several times.
time to smurf on my apcs classmates
The best way to learn is to teach.
Hello my dear. 👍👍🌷🙋♀️🌷🙋♀️🌷
Ppipo
Second
first
You didn't mention System.arrayCopy.