Тёмный

Set and HashSet in Java - Full Tutorial 

Coding with John
Подписаться 331 тыс.
Просмотров 188 тыс.
50% 1

Full tutorial on Sets and HashSets in Java!
Thanks to Mailgun for sponsoring this video! Go to mailgun.com/john to try Mailgun today.
☕ Complete Java course: codingwithjohn.thinkific.com/...
What exactly are Sets and HashSets in Java? How are they different? How do you use them, and how are they different from Lists and ArrayLists?
We'll learn all about Sets and HashSets (and other types of sets like TreeSets and LinkedHashSets) in this video.
Learn or improve your Java by watching it being coded live!
Hi, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java learners.
Let me know what else you'd like to see!
Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.
📕 THE best book to learn Java, Effective Java by Joshua Bloch
amzn.to/36AfdUu
📕 One of my favorite programming books, Clean Code by Robert Martin
amzn.to/3GTPVhf
🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial
www.audibletrial.com/johnclean...
🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)
bit.ly/3QPNGko
📹Camera I use for recording:
amzn.to/3wlXcmR
🎙️Microphone I use (classy, I know):
amzn.to/3AYGdbz
Donate with PayPal (Thank you so much!)
www.paypal.com/donate/?hosted...
☕Complete Java course:
codingwithjohn.thinkific.com/...
codingwithjohn.com

Опубликовано:

 

11 дек 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 346   
@CodingWithJohn
@CodingWithJohn Год назад
Thanks to Mailgun for sponsoring this video! Head to mailgun.com/john to try Mailgun free today. Let me know if you have questions, or ideas for another video!
@praveenrock3417
@praveenrock3417 Год назад
You have to have way more subscribers for the quality of content you're putting out. Crystal clear presentation of concepts..
@CodingWithJohn
@CodingWithJohn Год назад
I'll have to start making worse videos till I get more subs!
@kcrowe8583
@kcrowe8583 Год назад
What are your thoughts on using var for local variables? Example: var myCat = new Cat();
@wellingtondefassio4435
@wellingtondefassio4435 Год назад
Hey John, i am missing new videos!!❤️
@CodingWithJohn
@CodingWithJohn Год назад
Sorry! I had a minor surgery that I'm recovering from at the moment so I've been delayed. But don't worry, I haven't gone anywhere, so once I'm doing better I'll be back at it.
@evelinechaza6786
@evelinechaza6786 Год назад
Not all heroes wear capes. John is out here saving grades.
@tarunsoni6971
@tarunsoni6971 Год назад
Not all heroes wear a cape, John out here is making DSA a piece of cake.
@pradeepyadravi2533
@pradeepyadravi2533 Год назад
Not all heroes wear capes. John is out here helping crack interviews
@poppincena5909
@poppincena5909 10 месяцев назад
Joh out here helping me not get fired from my job 🥲😝 Thanks john !!
@DucNguyen-sd4mn
@DucNguyen-sd4mn 5 месяцев назад
Not all heroes wear capes. John is out here helping me crack Google Cloud system
@xbz24
@xbz24 Год назад
The fact u used breaking bad char names made u the goat,thanks for this John
@CoffeeDev749
@CoffeeDev749 Год назад
Thank you, John! Also, I loved the Breaking Bad characters being incorporated into the lesson.
@galdamez3
@galdamez3 10 месяцев назад
Woh, I did not make the connection to the show and the sample names. I was too focused on understanding the concepts. Good eye!
@antonmariadas7747
@antonmariadas7747 8 месяцев назад
Love your courses. Needed a reminder about sets and you made it crystal clear 😊
@niictar
@niictar Год назад
It’s amazing having access to Java tutorials with the same quality and enthusiasm other YT channels give to the likes of Rust or the latest JavaScript framework. Thank you John!
@petergazer8321
@petergazer8321 Год назад
Thank you for all of your videos! You break it down in such an easy way to understand. Can you do a video sometime on serialization with examples and when to use it?
@juanjaimeszuluaga
@juanjaimeszuluaga Год назад
Hi John! I'm a student of systems engineering. I'm from Colombia and your videos are making me improve in this language. Thank you!
@aidoka2000
@aidoka2000 Год назад
Awesome, concise and clear explanation. Thank you John. I even enjoy watching the topics I already know, because I just love your way of explaining them.
@ah_dev
@ah_dev Год назад
your videos are helping me understand my Java coursework at Uni! Thanks for all you do John!
@isaacwhiz
@isaacwhiz Год назад
Am really really satisfied with the terms you use and the implementation of the concepts in a simple and easy to understand format. Thank you, Thank you, Thank you
@user-tf6no2wr2u
@user-tf6no2wr2u 10 месяцев назад
In my opinion, John is the best programming mentor on RU-vid platform! Thank you so much, John!
@tabsc3489
@tabsc3489 Год назад
Ran into these at work today, so this is a nice coincidence! Thanks for the great tutorial
@trustytrojan
@trustytrojan Год назад
even though i knew all about java sets, i still watched this video to appreciate how well you teach these concepts. keep it up youre doing good work for the java community 🙏
@mannieg88
@mannieg88 Год назад
Thank you, John, your explanations are very straightforward and easy to understand. I like the way you explain in the end how we can use data structures in real-world problems.
@jetsfan8437
@jetsfan8437 Год назад
This was great. Can we get a video explaining interfaces vs classes and APIs?
@galdamez3
@galdamez3 10 месяцев назад
I had to learn Java for a new job last year and while many of the concepts like Hash Sets have one-to-one parallels in other languages I’ve used, I’ve yet to read up on how to implement them in Java. This tutorial easily saved me a couple of hours of textbook reading. Keep up the great content.
@chazzhorn7688
@chazzhorn7688 Год назад
I love your way of explaining these concpts! Thanks John!
@mislam2565
@mislam2565 4 месяца назад
Simply Perfect and Perfectly Simple to Understand! Thanks a Ton!
@anubratsahoo1351
@anubratsahoo1351 11 месяцев назад
What i couldn't understand from 1 hour long lectures,this guy just taught me under 30 mins hatss offf
@olenashov5214
@olenashov5214 Год назад
Your explanation of Java makes it easier to understand. Thanks, John!
@sadeepaalwis5938
@sadeepaalwis5938 Год назад
Thank you so much for the detailed explanation this is a gem 😍
@mastershonobi110
@mastershonobi110 Год назад
Very good vid. It covers all the good stuff in plain English. Thanks John.
@jordanparsa7713
@jordanparsa7713 Год назад
Hey John! Your videos are helping me get through the most important internship of my life. THANK YOU. Humble Request: can you make a video covering serialization/deserialization?
@ayushmaansural4896
@ayushmaansural4896 9 месяцев назад
Man respect ++ , The clarity you gave was commendable !
@raisgamesnz325
@raisgamesnz325 10 месяцев назад
Thank you so much for this tutorial!
@MzamoHerbza
@MzamoHerbza Год назад
Absolutely clear and awesome quality, John. I love the content
@ObieR
@ObieR Год назад
This is awesome. Your videos have helped me so much. Thanks for all of your work.
@federico42o
@federico42o Год назад
Thanks John, with you I improve my code and my English. Greetings from Argentina
@semilife
@semilife 3 месяца назад
Thanks John, great clear concise videos. Perfect for a newbie and quick refresher.
@socaljusticewarrior558
@socaljusticewarrior558 Год назад
Another high-quality video, John. It actually came at the perfect time for me. I was making a whole lot of spaghetti code with ArrayLists and for loops, but then I realized that I need to focus on learning data structures for a while. This very lesson just happened to be applicable to a project I'm working on right now. I'm messing with an API that gives me random cat facts, and I've been getting a lot of duplicates.
@CodingWithJohn
@CodingWithJohn Год назад
Awesome, I'm glad it helped!
@Timeless_Trader
@Timeless_Trader Год назад
Thanks John, it was quite helpful to remember the working principle an difference between these.
@polimorphic13
@polimorphic13 Год назад
Excellent video as always. Thank you John!
@girishanker3796
@girishanker3796 Год назад
Love your videos. So clear 🤌✨
@abhijeetvdsh
@abhijeetvdsh 3 месяца назад
One of the best tutorial | Complete and Clear with examples
@humzakhan766
@humzakhan766 11 месяцев назад
Thank you john. Loved It. God bless you
@ivaylokostadinov7543
@ivaylokostadinov7543 Год назад
Hi, John! Could you make a video explaining encapsulation? Your explanations make it so clear.
@sachinsonawane3767
@sachinsonawane3767 6 месяцев назад
Found at right time. Just when I was feeling low and bored but wanted to explore set interface. Good explanation and examples thankyou
@davidwangonjo2041
@davidwangonjo2041 Год назад
You made it look easy. Thank you John
@user-un3qd6tv7l
@user-un3qd6tv7l 11 месяцев назад
Your videos are really good and concise, gives me insight enough. Thanks.
@jagan107
@jagan107 Год назад
Thank you John for make me understanding difference in using Set() and HashSet() i had this doubt for longer time. Time in the video: 3:12 to 4:21
@satricon
@satricon 6 месяцев назад
Awesome information! Thank you so much!
@deykumar5433
@deykumar5433 Год назад
Hi John, I love the way you teach. I really appreciate your hard work and effort. It would be very helpful if you make a series on Dynamic Programming. You have that ability to make complex code easier. Thank you so much for your wonderful videos
@evilman667
@evilman667 9 месяцев назад
As a senior dev, i must say, watching your videos is very relaxing. Thank you.
@integralcialbay4633
@integralcialbay4633 11 месяцев назад
Thanks for the great video! I really enjoyed and learned a lot from it. Just wanted to add one little thing about the difference between HashSet and TreeSet: Elements of a TreeSet need to implement either the Comparable interface or they need to come with a Comparator, since the TreeSet sorts them out whereas HashSet just places them based on HashCode. This is a very small difference, but it can be important sometimes.
@crixi__
@crixi__ Год назад
perfect explanation, I love it
@Devivl
@Devivl Год назад
John, you're VERY cool at explaining complicated things in simple words. Thank you so much! Very cool!
@nabeelrehman5451
@nabeelrehman5451 Год назад
Great content as always, Please make a tutorial about java futures.
@faroukmatamir
@faroukmatamir Год назад
Thanks John, Your video is very helpful to me, please keep it up .
@anwaralkadi6540
@anwaralkadi6540 Год назад
You are really one of the best. Thanks a lot
@adityapradhan8474
@adityapradhan8474 9 месяцев назад
Very helpful video. You are a life saver man
@MatthewWeiler1984
@MatthewWeiler1984 Год назад
Thanks for the video. I haven't really used Sets in the past. Looks like I have some refactoring to replace instances where I used a List just to keep track of unique entries.
@taljune142010
@taljune142010 Год назад
Thanks a lot! You really helped me.
@kronosssssss
@kronosssssss Год назад
Amazing pedagogical skills you have sir. Nice work and thank you
@summeray1
@summeray1 Год назад
Great and simple explanation! Thanks!
@Hianfita
@Hianfita 5 месяцев назад
Great content and incredibly well explained! Thank you sir!
@rajenderprasad1193
@rajenderprasad1193 Год назад
Thank you so much for this
@royalmech14
@royalmech14 8 месяцев назад
John. Keep them coming. I’m from india. Haven’t seen anyone who speaks organised. Precised as you do. Love your work. Bless you ❤
@michaelbistritzki7560
@michaelbistritzki7560 Год назад
This is amazing! Now that I thought about it more deeply the idea is genius. I am studying the course on data structures and an introduction to algorithms and now I am thinking that it is possible, as you described at minute 13:15, to reduce the running time of searching for duplicates in a certain list from O(n^2) to O(n) just by using a HashSet. Thank you so much John for opening this thought to me, I will keep thinking about it in the future.Keep making more videos like this, it helps a lot!🤗
@laforever401
@laforever401 5 месяцев назад
Wow! What an amazing video! Thank you so much for this!
@karlcossaboon7072
@karlcossaboon7072 Месяц назад
Absolute legend over here Thank you
@ksgirish1077
@ksgirish1077 Год назад
Thanks for your content. A worth watch.
@gowsikhaadevasenabathy
@gowsikhaadevasenabathy Год назад
Hi John, your videos are extremely helpful for me as I have joined a software firm after a long career break with no prior experience in Java. Can you please do a video on Persistence since there are not many videos on this topic?
@wendyduggins1154
@wendyduggins1154 Год назад
Great teaching skills, thank you!
@rashmiraj5269
@rashmiraj5269 11 месяцев назад
It's called a wow video❤ thanks for making it easier
@yelizkosar3478
@yelizkosar3478 Год назад
I love your all videos. I improve myself with you Genius
@aldoumene6201
@aldoumene6201 Год назад
Great tutorial as always John! Can you consider doing suffix arrays? I still struggle understanding it 😅
@shaznd301
@shaznd301 8 месяцев назад
An Excellent Video! Thanks.
@alphab5543
@alphab5543 Год назад
Great, many thanks John
@denzashleypascua1392
@denzashleypascua1392 5 месяцев назад
thankk you this will help me in my study
@jermainscott6973
@jermainscott6973 9 месяцев назад
I swear you are the best John 👊🏾
@kyzuno5066
@kyzuno5066 7 месяцев назад
Thank you professor!
@sumaiyaansari3105
@sumaiyaansari3105 9 месяцев назад
You are really great Sir!!
@ArturBerkut
@ArturBerkut Год назад
100 times thank you! I learn English with and Java too So happy to find your channel here
@gab1crazy
@gab1crazy Год назад
maannn we just started studying hash and how it works and it's amazing. now I just found this video explaining it !!! THX SO MUCH (:
@user-ci9om8vi9f
@user-ci9om8vi9f Год назад
Such a great videos!!! 🙂
@m_i_g_u_e_l_
@m_i_g_u_e_l_ Год назад
John you are the best java developer i know, thank you so much for share your knowledge.
@carlosginer2623
@carlosginer2623 Год назад
Kudos to you John ! keep the good work
@humairahalimi3741
@humairahalimi3741 8 месяцев назад
Thanks, this video was great, Very easy and clear explanation!
@thomas_m3092
@thomas_m3092 Год назад
Great video. Thanks John.
@sanchalisharma9149
@sanchalisharma9149 Год назад
I loved it. I want more videos on collection frameworks. Also more on file handling and swing awt. Jdbc everything. I love your videos.
@muradquliyev6448
@muradquliyev6448 Год назад
Thanks!
@ronneyismael5804
@ronneyismael5804 Год назад
John the way you explain is so good that I don't need to study Java Documentation. Keep it it up. Please also make a video on Marker interface and discuss about cloneable and serializable interface
@funvideos6569
@funvideos6569 10 месяцев назад
Nice & Informative Video Sir .
@KrzysztofChrzan
@KrzysztofChrzan Месяц назад
Very informative and usefull video. Cheers from Poland.
@michael_scarn_
@michael_scarn_ Год назад
Thank you John! Your videos are really helpful :) Could you please make a video about HashCode and equals contract?
@gopalkannan4934
@gopalkannan4934 Год назад
Thank you very much.
@guzinreidelas
@guzinreidelas 10 месяцев назад
John, thank you so much for the Java lessons. As someone who is not fluent in English, having to read the error-filled RU-vid captions and follow the lesson at the same time, I actually understand your explanation better than my own professor's. Sending a warm embrace from Brazil!
@Robin-hi4vj
@Robin-hi4vj 10 месяцев назад
Que legal, Você siga em frente
@sujitsharma4792
@sujitsharma4792 Год назад
Amazing content as always
@AnkitYadav-sk4nw
@AnkitYadav-sk4nw Год назад
Sir you are a Legend ! Thank you so much for your wonderful content.❤
@kvv8197
@kvv8197 Год назад
Best explanation ever, thanks!
@CodingWithJohn
@CodingWithJohn Год назад
Glad it was helpful!
@rambhaktuchihaobito7987
@rambhaktuchihaobito7987 Год назад
Thank you...sir ❣️
@Namregnal
@Namregnal 11 месяцев назад
Hey John, great video as always. Any chance for a Comparator and Comparable video? Thank you!
@Bheemagni
@Bheemagni Год назад
Happy new year John
@Aymen.Thabet
@Aymen.Thabet 20 дней назад
Thank you so much
@letampatrickbienwi4610
@letampatrickbienwi4610 11 дней назад
Don’t usually comment but great video , I learnt a lot and I can see the connection with data structures better. Thank you John!
@surajverma-ut4kj
@surajverma-ut4kj Год назад
My favourite Java Guru❤
@Namajaff
@Namajaff 16 дней назад
fricking love you man
@JohnDoe-ux7hl
@JohnDoe-ux7hl Год назад
Hi! Im new in your channel, this video was really helpfull, thanks so much.
@winwin2369
@winwin2369 6 месяцев назад
Excellent !!!
Далее
Map and HashMap in Java - Full Tutorial
10:10
Просмотров 523 тыс.
Тяжелые будни жены
00:46
Просмотров 900 тыс.
Hidden Beauties of Java Enums
22:20
Просмотров 9 тыс.
Hash Tables and Hash Functions
13:56
Просмотров 1,5 млн
Generics In Java - Full Simple Tutorial
17:34
Просмотров 1 млн