Комментарии:
super goated explanation
ОтветитьLinkedIn account??
ОтветитьYou literally saved me thank you
ОтветитьAhh brilliant. In a lot of cases I've been making multiple arraylists and updating them all, but it can be hard to track everything or to go back and change them. I guess you can't assign multiple values to a key and would just need to make it a class/object if you want that?
And is it possible to manipulate/sort the way it's printed instead of just printing it as the 'strange' order that happens because it only stores things?
Missed the opportunity to use the name Jenny with 8675309 😂
ОтветитьThanks so much, for explaining everything in such a easy way........ There is not a single channel thats doesnt make it look over complicated...... Thnak god i found this Channel....Subscribed now for life.
ОтветитьI don not really understand the use cases you explain in the end. They all sound to me like things I would store in an object of a class (e.g. the birthday of a pet). I know this might be just how I think about coding but when would you actually prefer a map over a class? I assume it is more performant but again I find it hard to grasp on when you even know to value performance over modularity and "clean" code.
ОтветитьBrother brother i never comment on a video but i have watched many coders now and has created brainrot you were the best best best a-i understood every single thing here thanks man you just gained a big subscribe
ОтветитьNice video!
ОтветитьThis is the best explained HashMap video for Java. I'm currently cramming data structures and would appreciate well-explained videos on other data structures in Java like stack, queue, tree, graph, heap... I saw your video on sets too.
Ответитьmakasih bapak johnny sins, saya jadi paham mangenai hashmap, bless u and keep shinning
Ответитьdamn you talking fast :(
ОтветитьVery clear and to the point explanation. The only problem in a realistic scenario is that a map can't have the same key twice, so using Strings (especially names) is not recommended. It's better to use unique IDs (a String or an Integer wrapper class) as keys for each value and anything you want as value. In the example of employees hashmaps, you can use as values the names, or even custom Employee objects containing all the data of each employee.
Obviosly it's only one way of fixing this risk, another way is to use the objects (for example Employee) as keys and data (for example an Integer salary) as value.
DeepSeek suggested your video when I asked about maps in Java. You have the AI by your side :P Great content
ОтветитьTo the point, Just usecases, ThankYou bro
ОтветитьCongratulations I nailed the certification test
ОтветитьCongratulations- after long time it You nailed it our 10th level of recruitment stage, but sorry we cannot hire you John Brown for a junior dev position because our employee hashmap only allows a replace - so there as it we already have another guy with a same name a senior dev John Brown - we dont want to replace him - good luck finding another company.
Ответитьgreat to refresh my knowledge on maps, thank you!
ОтветитьIts crazy how you explain better than my lessons 😭
ОтветитьThank you so much! This was super helpful and was exactly what I needed.
ОтветитьExcellent to learn from
Ответитьwhat ide ?
ОтветитьYou are the man
ОтветитьLove the carl animation whenever you say his name😂
ОтветитьGreat video. Understood and could follow along after being introduced to this in class. Subscribed!
Ответитьthanks jhon
ОтветитьThank you for this clear and easy explanation!
ОтветитьAnd what about map collision?
ОтветитьThis was so helpful. Thank you !
ОтветитьI didn't know why you have fewer subscribers, I am the kind of person who does not understand things right away, but your video is so simple, and precise. I will understand if you do some rocket science courses too haha. Anyway, you are so smart enough and can readily explain things.
ОтветитьSuch a great explanation. Thanks
ОтветитьThank you very much for this video. Can you please explain the difference between Map (HashMap) and a two dimensional array. Both seem to be exactly the same to me
ОтветитьIf you had to use a HashMap to make a program that tells you the line numbers where each word in a text appears, what would be the keys and what would be the values ?
I mean, I guess the values would be the words (strings) of the text, but what about the keys ?
You made my day with this simple explanation. Thanks! <3
ОтветитьIt's an amazing video it explains how to use hashmaps in pretty short video. I'm learning springboot and I don't know about hashmaps so it really helps me to understand how the hashmap works and now I can use it.
Ответитьwhat's the IDE you are using ?
Ответить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.
ОтветитьHey John, Whats the difference between put and putIfabsent in case a key doesn't exist in a map ?
Ответитьvery quick explanation . can't understand even what you say!
ОтветитьThankyou ❤🎉
Ответить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
ОтветитьConcept is crystal clear now. Thank you!!
ОтветитьIt is not the best idea to ise names as keys as hashmap should have unique keys, and names are not unique
Ответитьhey someone has a roadmap on this algoritms and in what order should i learn them
ОтветитьYou explain so well, thank you
ОтветитьIn Python it's called a dictionary (data type "dict") and in JavaScript it's called an object.
ОтветитьGood
Ответить