Map and HashMap in Java - Full Tutorial

  Рет қаралды 554,976

Coding with John

Coding with John

3 жыл бұрын

Complete Java course: codingwithjohn.thinkific.com/...
Maps and HashMaps in Java can be so confusing when you're first starting out your Java career.
But Maps and HashMaps don't have to be confusing at all! A Map is a simple, powerful tool to have in your programming arsenal, and this video will give you everything you need to know to use Map and HashMap confidently in Java, even if you're a Java beginner.
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
📹Phone I use for recording:
amzn.to/3HepYJu
🎙️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

Пікірлер: 457
@gur151
@gur151 3 жыл бұрын
Super underrated channel. With how little views your videos currently get, I'm surprised KZbin even recommended them to me! You deserve a lot more viewers for how well you explain things, and I hope your channel gets the recognition it deserves soon enough
@CodingWithJohn
@CodingWithJohn 3 жыл бұрын
Thanks! As you for sure already know, liking/subscribing/sharing/commenting all really help, so I really do appreciate it!
@thunderstruck2727
@thunderstruck2727 2 жыл бұрын
At this rate his channel won’t be small for long.
@davidteklea1032
@davidteklea1032 2 жыл бұрын
I feel the same way as you Gur.
@iskandar-9726
@iskandar-9726 2 жыл бұрын
@@davidteklea1032 +1
@blazing_yt2342
@blazing_yt2342 Жыл бұрын
Amazing explanation man, you actually made mapping easier.
@yuto5636
@yuto5636 3 жыл бұрын
I am a first year software development student and there are a bunch of stuff they didn't teach us. This video is quite useful! Thanks!
@millenialmusings8451
@millenialmusings8451 2 жыл бұрын
the one thing i like about this channel is he doesn't waste any time. you can see he edits out speech pauses and filler words. very concise and engaging.
@SpideCooper
@SpideCooper 2 жыл бұрын
yeah it didn't even feel like ten minutes just found this page and its already awesome
@CarlosCed
@CarlosCed Жыл бұрын
Sir, I’ve been binge-watching your videos for the last three days. You make it all so very simple and clear. Thank you.
@peterswrath8806
@peterswrath8806 2 жыл бұрын
man if only my cs class was set up and taught like John. he explains all these topics, in the best simplest ways! love these videos!
@miler_2260
@miler_2260 2 жыл бұрын
This is absolutely amazing! Your explanations are so clear and straight to the point... You have got a very special skill there my friend, good work!!
@dibjr
@dibjr 2 жыл бұрын
Thank you, John! Your videos are concise, clear, and well presented. I really enjoy them!
@DirectNRG
@DirectNRG 2 жыл бұрын
never subscribed that fast in my life...Straight to the point, easy to understand. keep it up!
@crookedcrowe9215
@crookedcrowe9215 2 жыл бұрын
I have a test coming up tomorrow and this guy is literally saving my life by making things simple and clear to understand. THANK YOU!!!!!
@youthought878
@youthought878 2 жыл бұрын
I don’t understand how you can explain this stuff so easily. Seriously a true talent. Can’t thank you enough for the videos
@shahoodgmail
@shahoodgmail 2 жыл бұрын
Your tutorials are bingeworthy. I already know and use Java but in all of your tutorials, I do get to learn a thing or two. Keep up the good work! 👍🏼👍🏼
@azadassis3669
@azadassis3669 Жыл бұрын
I have recently discovered this channel, and to be completely honest, it's an awesome channel to learn from. I have seen many channels teaching Java, but this one is different, the way the John teaches is captivating and holds your attention throughout the video. The videos are informative yet concise, and everything is presented clearly and accurately. I have been going through all the videos.
@BronkoBanane
@BronkoBanane 2 жыл бұрын
straightforward, structured and contains the essentials. Thanks for this good video!
@ChickensAndGardening
@ChickensAndGardening Жыл бұрын
I've been doing Java since the late 1990s and this tutorial still taught me a thing or two. Good job!
@Naruto_Uzumaki_
@Naruto_Uzumaki_ 8 ай бұрын
I just wanted you to know that you're making a great difference in my academic life Mr. John! I appreciate your channel a lot!!
@Devivl
@Devivl Жыл бұрын
One of the best. Short and clear. Thank you, John!
@carriewright7247
@carriewright7247 5 күн бұрын
Thank you so much John! Your videos are great! I love how I can learn what I need in just 10 minutes as opposed to the typical school setups we have all experienced in other venues that takes hours and leave you confused.
@mattmalan6
@mattmalan6 3 жыл бұрын
Thank you so much! I've got this massive project due in a few days!
@ceciliacastro3093
@ceciliacastro3093 Жыл бұрын
This video was really helpful. I´m studying engineering and I understood more in your 10 minute video than in a whole programming semester. Thank you form making student´s lifes easier.
@ayushsaxena3511
@ayushsaxena3511 2 жыл бұрын
It's absolutely brilliant to watch your videos.. Loved the way you present things with such a simpler approach..
@popularcoffee9141
@popularcoffee9141 2 жыл бұрын
love the topics you discussed! they are what i would wonder but too lazy to dig in. big thank you to that! (and the clear explanation as well)
@pedroaboffa
@pedroaboffa 2 жыл бұрын
man please.. please keep it up with ur videos.. plsssssssssssssssss they are amazing.. I am in the middle of a java bootcamp and they are really helping me out
@CodingWithJohn
@CodingWithJohn 2 жыл бұрын
Thanks Pedro! I appreciate all the comments, keep up the learning!
@pedroaboffa
@pedroaboffa 2 жыл бұрын
@@CodingWithJohn amazing !!! will watch all ur videos and also I am sending them to all my bootcamp friends..
@legendarybond4779
@legendarybond4779 9 ай бұрын
I stumbled across some of your youtube videos as I wanted to understand more of Java. Thanks alot for these uploads!
@glenn8781
@glenn8781 2 жыл бұрын
Brooo.. I love you so much! You bring a new, exciting and deeper understanding to Java. You have a unique ability to put things in a really interesting way! Looking forward to seeing more videos from you on Java concepts. Your channel will surely grow exponentially!
@rafaelcruz8966
@rafaelcruz8966 Жыл бұрын
Seriously helping me get back in the groove for advanced data structures thank you 🙏🏽
@aryanjoshi9703
@aryanjoshi9703 6 ай бұрын
in ten minutes i am able to learn which others explain in double or triple amount of time and comprehended 95% of the video content , thanks to your explanation , thank you john sir
@IralaPraveen-ku6zr
@IralaPraveen-ku6zr 3 ай бұрын
you make to flooded lot of content into our brain in just a few minutes.thank you John.
@Quantum_in_Java
@Quantum_in_Java 2 жыл бұрын
I am super glad that I discovered this channel . Your videos are precise, to the point and very easy to understand (especially you way of explaining ) . Thanks a lot sir. Saviour of semester exams. 👍🏻
@BernardVisagie
@BernardVisagie 2 жыл бұрын
2:28, now in C# you can infer even more, and you would be able to write your Java as: HashMap empIds = new();
@Rowa_n
@Rowa_n 2 жыл бұрын
this is very helpful! thank you so much for making this tutorial! it was easy to follow
@xiangyuliu9629
@xiangyuliu9629 2 жыл бұрын
pretty clear, cut to the chase, love this video, subscribed already.
@sigfigronath
@sigfigronath 2 жыл бұрын
This is so simple wow, thanks John!
@szaryn
@szaryn 2 жыл бұрын
Yo! Clear, straight-forward, and fun explanation. Thank you so much, John! ^^
@flytoinfinityvivi
@flytoinfinityvivi 3 ай бұрын
This video literally equals to an hour of studying trying to understand Map. You are amazing! Please never stop what you are doing. You actually make us beginners understand and well hopefully making us the future IT people (:
@idreesalao6155
@idreesalao6155 2 жыл бұрын
This was very helpful and easy to understand. I really appreciate it, thanks.
@stevenschelling8452
@stevenschelling8452 2 жыл бұрын
This is truly some of the best coding instruction I've found online
@justinbanza4751
@justinbanza4751 2 жыл бұрын
Thank you very much for this video. it is very nice to learn with an enthusiast teacher.
@ohmarianito4617
@ohmarianito4617 3 жыл бұрын
Very good videos, I am already watching many of them, you explain very well, I hope your motivation continues! +1 follower
@twinklehingu2757
@twinklehingu2757 2 жыл бұрын
This was very helpful and easy to understand. I really appreciate it, Thank you so much.
@saronabi1387
@saronabi1387 Жыл бұрын
U always make things easy for us , really am impressed with your courses, thank you so much for helping us!
@dsnewby
@dsnewby Жыл бұрын
Fantastic video and such a well put explanation, easy and fun to follow along. Thanks a lot!
@calabert
@calabert 3 ай бұрын
I want to truly thank you. You're helping me a lot. Your way to explain things is clear and to the point. Very easy to catch tricky concepts with your tutorials. Thanks! new sub :)
@shoaibaltaf705
@shoaibaltaf705 3 жыл бұрын
I tell you now. You will become top code KZbinr
@CodingWithJohn
@CodingWithJohn 3 жыл бұрын
Thanks for the words of encouragement and thanks for watching!
@venkat757
@venkat757 2 жыл бұрын
Man... You are hidden diamond 💎 in KZbin and I found you very late..... You deserve more views than any other java related videos.... I am from India.
@hassanlearning4086
@hassanlearning4086 Жыл бұрын
Spent hours reading book but explained it so simply. Thank you.
@RolandMurdoc
@RolandMurdoc Жыл бұрын
I love the way you explain Java Subjects, you make me feel like it is not really that hard.
@To4ster0ven
@To4ster0ven 28 күн бұрын
hello john. im a day before finals in one of the courses in java that i learn and this video has explaind the hashmap so well. thank you so much
@jyotvkathalu7901
@jyotvkathalu7901 Жыл бұрын
It’s a very crisp and detailed explanation… i was waiting for you to explain iterating maps … thq for video
@karthikm5507
@karthikm5507 2 жыл бұрын
Crisp and clear. Really liked the way you explained.
@CanopusInfinity
@CanopusInfinity 2 жыл бұрын
Thank you for uploading such great content and educating us. Your explanation is so precise and concise.
@vijivenkat9414
@vijivenkat9414 Жыл бұрын
I just subscribed to the channel just watching one video, so specific, clear concise..keep rocking..
@davishek7
@davishek7 2 жыл бұрын
Hope text books had this type of explanation. Great videos John. Refreshing my Java knowledge after 2 years of not using it.
@whiteliszt8805
@whiteliszt8805 3 жыл бұрын
Tnx a lot for ur videos, i really enjoy how u represent the agenda and especially ur english
@rajesh_gottimukkula
@rajesh_gottimukkula 2 жыл бұрын
Thank you John for such crisp and clear explanation.
@hey4077
@hey4077 Жыл бұрын
Thank you very much, I appreciate your videos and the fact that they're for free!
@garrickreynolds2015
@garrickreynolds2015 2 жыл бұрын
This is an amazing and clear explanation. Thank you!
@personontheinternet2164
@personontheinternet2164 2 жыл бұрын
Really love the presentation and energy of this channel!
@jakingsarchly6433
@jakingsarchly6433 Жыл бұрын
Couldn't ask for a better teacher @ John. Thank you!
@Garrison86
@Garrison86 2 жыл бұрын
Awesome! This is Clear and easy to understand
@gideonob
@gideonob 2 жыл бұрын
Best video I've watched on any Java data structure! Thank you sir!
@cyrilmartin9221
@cyrilmartin9221 Ай бұрын
Concept is crystal clear now. Thank you!!
@GiosBordoli
@GiosBordoli 5 ай бұрын
This is exactly the video I was looking for! Thank you!
@Diana_13.
@Diana_13. Жыл бұрын
A huge thanks to you.The way you talk is so clearly also for none English speakers...🤝👏👏👏
@pandadoskoi
@pandadoskoi 10 ай бұрын
Thank you so much. I certainly had my struggles to understand what Maps in Java are and what their purpose is, my scripts from university read like messages from outer space... but now I at least have a clue to get further in learning. I felt so stuck with this topic and felt so stupid because everyone said "oh, maps and hashmaps are so easy". Again, thank you effin much. Left a like and sub! :)
@TheStormtrooperrr
@TheStormtrooperrr Жыл бұрын
Clear, no BS, concise. Just subbed
@HatTrick4030
@HatTrick4030 Жыл бұрын
Amazing!! understood HashMaps within 5 minutes 😎. Super Thanks
@ahmetalperenyildirim6184
@ahmetalperenyildirim6184 Жыл бұрын
Great content! sharp clear, thank you for sharing, you teaching us a lot!
@faroukmatamir
@faroukmatamir Жыл бұрын
Really big thanks to you for your efforts, I really understand the topic when I watch you. Please hange on and you will reach a million sub soon
@taldennis8058
@taldennis8058 2 жыл бұрын
Excellent video as always, thank you very much John you are the best!!
@gerdsfargen6687
@gerdsfargen6687 Жыл бұрын
This guy rattles off it like an expert juggler. He is SO cool! We all could use the master communication skills like him here...especially for teaching programming! You got my vote!
@brilliantdecember
@brilliantdecember Жыл бұрын
Very well explained. Glad to have found your channel.
@dost27
@dost27 2 жыл бұрын
Very simple and easy to understand the concept of Map. Keep it up
@qusaiclasher4452
@qusaiclasher4452 8 ай бұрын
You're the best. Your teaching is way better than my professor. Please keep uploading more useful videos like this one
@TheCurious36
@TheCurious36 Жыл бұрын
coding with john. you are a good man. thank you.
@TheDoomCompany
@TheDoomCompany 9 ай бұрын
Thank you, this video answered my questions right away
@godiloverock
@godiloverock Жыл бұрын
Helpful, and explanatory! Thanks for the video.
@evanpilling8429
@evanpilling8429 Жыл бұрын
This is such an awesome channel. Thanks for the video!
@ReallyAqua
@ReallyAqua 2 жыл бұрын
Why do you not have a lot more subscribers? You have helped me so much and you deserve to have a lot more. Thanks for helping me out on so many things!
@CodingWithJohn
@CodingWithJohn 2 жыл бұрын
I've been lucky enough to go from about 10k a month ago to over 50k now and growing. So it's taken a long time but I'm on my way. Thanks for the kind words, glad you're enjoying the videos!
@simbarashemaunga5575
@simbarashemaunga5575 3 ай бұрын
The Java content delivery here is just top notch!
@lindseyb1445
@lindseyb1445 2 жыл бұрын
This video was a gem! Thank you 🙏🏽
@ForrestTaft101
@ForrestTaft101 2 жыл бұрын
Brilliantly simple and concise. Subscribed
@everythingabout3479
@everythingabout3479 6 ай бұрын
Very nice channel . Actually clears the confusion
@michal1798
@michal1798 10 ай бұрын
You make the best java toutorials on youtube imo👍
@idunsky
@idunsky Жыл бұрын
hey John, thanks for your videos, they're super helpfull it took you 10 minutes to explain a three hours lecture
@blinkestblink
@blinkestblink Ай бұрын
You explain so well, thank you
@liljj2k10
@liljj2k10 2 жыл бұрын
The best explanation I ever came across
@nerodant85
@nerodant85 2 жыл бұрын
Thank you for making it easy to understand
@Moon-Knight313
@Moon-Knight313 2 жыл бұрын
Awesome explanation! Thanks John! Keep going!👍
@evgenystep8897
@evgenystep8897 10 ай бұрын
Super easy explanation thx to clear out how to easily use HashMaps!
@PrajwalYP2001
@PrajwalYP2001 11 ай бұрын
I like the way of simplicity in explaining the HashMap topic. 👍
@jakedotnet
@jakedotnet 2 жыл бұрын
9:09: The error 'Insert "Dimensions" to complete ReferenceType' refers to arrays. The primitive type int isn't a valid type to use here, but int[] would be a valid type, as all array types are reference types in java, even those of primitive component type.
@MarkSmith-vo1vn
@MarkSmith-vo1vn Жыл бұрын
Oh because int [] array is an object as well. We just need to pass in an object, so it thinks we want to do the int[]. Makes sense thanks.
@alexbrun6863
@alexbrun6863 Жыл бұрын
Great tutorial, helped me alot with my Java assignment :)
@desicow493
@desicow493 2 жыл бұрын
I'm glad KZbin recommended me this channel!
@jesusbrito699
@jesusbrito699 Жыл бұрын
Hi John!! your video are awesome!! you help me allways, thanks for this. Argentina
@Lightburg-hm1vj
@Lightburg-hm1vj Ай бұрын
Great video, please recommand this guy youtube
@Gamer_with_knowledge
@Gamer_with_knowledge 2 жыл бұрын
What a great explanation !! Thanks a lot man
@ziekaman2450
@ziekaman2450 2 жыл бұрын
Very well explained. 10/10
@jyotibansode5067
@jyotibansode5067 2 жыл бұрын
Hey John, thanks for the videos short and well explained, more forward to see ur videos on Spring Boot, Microservices, RestAPI........
@ismoilova_shahina
@ismoilova_shahina Жыл бұрын
thanks John for this well-explained tutuorial
@btmahvash
@btmahvash 2 жыл бұрын
Excellent, I learned very well
Set and HashSet in Java - Full Tutorial
20:43
Coding with John
Рет қаралды 207 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1 МЛН
Pleased the disabled person! #shorts
00:43
Dimon Markov
Рет қаралды 30 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 36 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 39 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 395 М.
Hash Tables and Hash Functions
13:56
Computer Science
Рет қаралды 1,5 МЛН
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 723 М.
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 901 М.
HashMap Java Tutorial #50
11:42
Alex Lee
Рет қаралды 411 М.
LinkedList vs ArrayList in Java Tutorial - Which Should You Use?
11:43
Coding with John
Рет қаралды 581 М.
Optionals In Java - Simple Tutorial
15:53
Coding with John
Рет қаралды 204 М.
Learn Hash Tables in 13 minutes #️⃣
13:26
Bro Code
Рет қаралды 338 М.
How HashMap works in Java? With Animation!! whats new in java8 tutorial
15:29
Ranjith ramachandran
Рет қаралды 1 МЛН
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 509 М.
Pleased the disabled person! #shorts
00:43
Dimon Markov
Рет қаралды 30 МЛН