Java HashMap 🗺️

  Рет қаралды 72,934

Bro Code

Bro Code

4 жыл бұрын

Java hashmap tutorial explained
#java #hashmap #tutorial

Пікірлер: 148
@BroCodez
@BroCodez 4 жыл бұрын
import java.util.HashMap; public class Main { public static void main(String[] args) { // HashMap implements the Map interface (need import) // HashMap is similar to ArrayList, but with key-value pairs // stores objects, need to use Wrapper Class // ex: (name,email),(username,userID),(country,capital) HashMap countries = new HashMap(); //add a key and value countries.put("USA","Washington DC"); countries.put("India","New Delhi"); countries.put("Russia","Moscow"); countries.put("China","Beijing"); //System.out.println(countries); //countries.remove("USA"); //System.out.println(countries.get("Russia")); //countries.clear(); //System.out.println(countries.size()); //countries.replace("USA", "Detroit"); //System.out.print(countries.containsKey("England")); //System.out.print(countries.containsValue("Beijing")); for(String i : countries.keySet()) { System.out.print(i+"\t"+"= "); System.out.println(countries.get(i)); } } }
@angelcastineira2561
@angelcastineira2561 3 жыл бұрын
thank you for sharing the code in the comments. saves a lot of pausing and rewinding :)
@ikebelida1528
@ikebelida1528 2 жыл бұрын
Bro can you make hash table stuff please..
@anakinronin5288
@anakinronin5288 2 жыл бұрын
Instablaster
@mangalmurmu6840
@mangalmurmu6840 8 ай бұрын
Yeah you have done correctly no mistake Keep it up😊😊😊
@salahSaad-ld8id
@salahSaad-ld8id 3 ай бұрын
Thanks for really amazing video it's really helpful
@kayleighrenner829
@kayleighrenner829 2 жыл бұрын
Your short and clear explanations helped me a lot! Thank you
@hermitmobile1742
@hermitmobile1742 2 жыл бұрын
Every time I watch these videos I am reminded that going to school is overrated … if only my teachers are this clear🤧🤧🤧
@mctinemacrisp3120
@mctinemacrisp3120 2 жыл бұрын
Love from Germany
@britneyhanna6667
@britneyhanna6667 3 жыл бұрын
Clear explanation as always bro. Thank you this helped me with my assignment.
@badeaadrian4529
@badeaadrian4529 2 жыл бұрын
Thank you. Your videos deserve way more atention!
@girl6994
@girl6994 4 жыл бұрын
That was what I really need to understand! Hashmap in java!
@monwil3296
@monwil3296 4 жыл бұрын
So simple 👌
@chetranqui
@chetranqui 2 жыл бұрын
Clear, succinct, and complete. Thank you for that.
@rene2936
@rene2936 Жыл бұрын
succ int
@desmiles1567
@desmiles1567 2 жыл бұрын
Easy and smooth as always Thanks a lot bro
@IdoH-vf2yc
@IdoH-vf2yc Жыл бұрын
Hi Bro, hope you're doing well Your videos and explanations about Java and many other programming languages you have on the channel are excellent, understandable and very helpful. You make a complicated subject much simpler. I was wondering if you could add to the playlist, videos that explain the interfaces: List, Set, Map. And an explanation of their implementers: HashSet, HashMap, TreeMap, TreeSet, SortedMap, SortedSet, etc.
@justinbanza4751
@justinbanza4751 2 жыл бұрын
Thank you for this video. Very clear and straight forward
@lamias7712
@lamias7712 2 жыл бұрын
I like your time traveling, :D. Thanks for the videos
@nkatekongobeni2665
@nkatekongobeni2665 6 ай бұрын
You make coding easy even though I'm mostly learning in theory and writing on pen and paper
@rimarai7898
@rimarai7898 14 күн бұрын
I have been studying Java for 6 months, and my university, as much as the lectures try to help, is absolutely useless, especially for someone like me who suffers from learning disabilities, but your videos are amazing... I wish I found it sooner. They teach me things and help me understand in 1-3 days compared to a month and only half understanding it through my university. Thank you so much! I am been acing my tests with your tutorials xd.
@milo-ur8zp
@milo-ur8zp 3 жыл бұрын
thanks a lot man, crystal clear explanations
@honkhonkv2236
@honkhonkv2236 2 ай бұрын
When i first heard about Sets and Maps i always thought i'd never use those but they are, in fact, actually easier than actual arrays, i'm kinda mind blown.
@aygula2834
@aygula2834 Жыл бұрын
Thank you so much for the easily understandable explanation!
@vpaulino15
@vpaulino15 Ай бұрын
One thing that always confuse me more is long explanations, I really appreciate how you make this simple and straightforward
@chickentendies5144
@chickentendies5144 Жыл бұрын
Good thing future bro popped in, I was confused AF and doubting myself.
@ramie0n
@ramie0n Жыл бұрын
Thank you for all your efforts
@youmightdontknow450
@youmightdontknow450 6 ай бұрын
Allways perfact explanation❤
@FukSN
@FukSN 2 жыл бұрын
Back on the Bro vids. Excellent as usual.
@wolanus
@wolanus 3 жыл бұрын
Great video. Thanks bro
@polatsaryerli3071
@polatsaryerli3071 2 жыл бұрын
bro this is awesome wou put things down so concisely
@sergeyb6071
@sergeyb6071 4 жыл бұрын
very happy to see new java tutorials Bro!
@BroCodez
@BroCodez 4 жыл бұрын
I'll be updating this playlist more often. It seems there's a big demand for Java
@user-xe8vl9eh9l
@user-xe8vl9eh9l 3 жыл бұрын
@@BroCodez theres a big demand for knowledge in the world because most of them cant afford it and want to find free ways to learn .thank you so much for ur videos
@neetuseharawat3241
@neetuseharawat3241 Жыл бұрын
Great explanation
@ramgunta7707
@ramgunta7707 9 ай бұрын
Good one...simple and easy explanation...thank you bro 🙂
@ksboi29
@ksboi29 3 жыл бұрын
Great video.
@sureshponna3405
@sureshponna3405 2 ай бұрын
Tqs for cleaning my mind with HashMap doughts😊😊
@kemann3815
@kemann3815 2 жыл бұрын
Bravo 👏
@navidreza4920
@navidreza4920 10 ай бұрын
wonderfull
@sagarkathiriya
@sagarkathiriya Жыл бұрын
really easy. thanks for goos explanation.
@ardcodelover
@ardcodelover Жыл бұрын
Outstanding bro sir
@ideaonic703
@ideaonic703 2 жыл бұрын
It's an Arraylist with objects as indecies.
@rukiruki-eg4kc
@rukiruki-eg4kc Жыл бұрын
I too, think about Hashbrowns alot.
@greenachos372
@greenachos372 2 жыл бұрын
Thank you bro!!!
@sarthakoberoimusic
@sarthakoberoimusic 10 ай бұрын
a comment for the sake of defeating the algorithm.
@mauxcbr4879
@mauxcbr4879 2 жыл бұрын
Great Job!
@talalbadreddine3978
@talalbadreddine3978 2 жыл бұрын
Hello is there a playlist for hash map , linked list , stack , Queue ? Thanks for your time.
@luoluoshomemade7169
@luoluoshomemade7169 2 жыл бұрын
really really nice!
@hlonimalebana9896
@hlonimalebana9896 3 жыл бұрын
How do you check if a key value pair exists in the hashmap? I.e if capital of India is new Delhi?
@nawfalnjm5699
@nawfalnjm5699 3 жыл бұрын
Thank you
@Ahmad-td4ck
@Ahmad-td4ck 2 жыл бұрын
Thanks bro
@mohtasimhossain3741
@mohtasimhossain3741 Ай бұрын
Bro is a hero❤❤
@HolyMolyNEWTonMusicNProgrammer
@HolyMolyNEWTonMusicNProgrammer Жыл бұрын
I LOVE THIS!
@arrheniusmbakz6160
@arrheniusmbakz6160 3 ай бұрын
You're the best Bro
@mysterymatt4761
@mysterymatt4761 Жыл бұрын
godly explanation.
@CarlAngeloAntenor
@CarlAngeloAntenor 2 жыл бұрын
me: Searches how to make a hashmap and clicks on a vid also me: *INSTANTLY CLICKS ON ANOTHER HASHMAP VID CAUSE ITS BRO CODE*
@alexshepel5599
@alexshepel5599 3 жыл бұрын
Nice, bro!
@ibrahimylmaz8378
@ibrahimylmaz8378 2 жыл бұрын
thanks bro
@IDK-kv8ob
@IDK-kv8ob 6 ай бұрын
3:39 the diamond operator at the end of the instantiation does not need to take in the String values. Java infers the type from the first portion! Hey, I actually know something about Java. Feels good.
@MrLoser-ks2xn
@MrLoser-ks2xn Жыл бұрын
Thanks
@khantko4670
@khantko4670 Жыл бұрын
Thank You bro
@thanhthanhtungnguyen8536
@thanhthanhtungnguyen8536 3 жыл бұрын
Nice video
@rokhafm9412
@rokhafm9412 Жыл бұрын
the best coding youtuber
@mini_dota
@mini_dota 2 жыл бұрын
Great
@AdrianTregoning
@AdrianTregoning 2 жыл бұрын
At 11:11, why does it not list the hashmap in the same order in which it was created? As always, great video. I started at video number 3 and this is number 76. Plan to do them all. Not just watching, but I'm doing them myself. Loving it. Your consistency in how you explain is remarkable.
@TheRealZitroX
@TheRealZitroX Жыл бұрын
A hashmap is not a list where you push elements at the end. Watch a video of a implementation of this method so you know more about it
@diamonddunyasi4945
@diamonddunyasi4945 7 ай бұрын
Thanks bro🙂
@abisarwan20
@abisarwan20 3 жыл бұрын
could you make course of dsa which you implement code manually
@harveers820
@harveers820 7 ай бұрын
this was great
@Vinay_Thakur108
@Vinay_Thakur108 Жыл бұрын
❤️From India.
@fl4shgaming188
@fl4shgaming188 Жыл бұрын
Burger -> Patty Pizza -> Cheese Chapati -> Wheat Spring Roll -> BBQ
@amankrmj
@amankrmj 3 жыл бұрын
Love From India😁😁😁😁
@samim2121
@samim2121 Жыл бұрын
Thanx
@mensahtribeadventures2630
@mensahtribeadventures2630 2 жыл бұрын
😎💪🏾💪🏾
@cherolphoshoko8670
@cherolphoshoko8670 2 жыл бұрын
thanks bro!
@udaysaimanoj2117
@udaysaimanoj2117 Жыл бұрын
Nice
@user-xs6on3cm7o
@user-xs6on3cm7o Жыл бұрын
Nice time-travel 🙂
@nages1171
@nages1171 2 жыл бұрын
Keep it up
@jianlim276
@jianlim276 2 жыл бұрын
Yea!!
@pedroferreira8328
@pedroferreira8328 4 ай бұрын
💪
@xXMaDGaMeR
@xXMaDGaMeR 2 жыл бұрын
love you bro
@khoadiep3774
@khoadiep3774 2 жыл бұрын
Can you do a video about Treemap ?
@Laughing_india_
@Laughing_india_ Жыл бұрын
you make it too easy to understand
@tasneemayham974
@tasneemayham974 Жыл бұрын
OUR BRO CAN TIME TRAVEL!!!
@user-fi2vc2wt5n
@user-fi2vc2wt5n Жыл бұрын
I took tree speps I smashed the butten, subscribed and yes I`d like to become a fello bro ;)
@leviplays7466
@leviplays7466 Ай бұрын
you're the bro
@eagle1341
@eagle1341 Ай бұрын
Have you ever eaten grass? Because you are the GOAT! :)
@amankrmj
@amankrmj 3 жыл бұрын
I Helped You.... 😊
@timo_b3
@timo_b3 Жыл бұрын
brooo why do u use da eclipse, intellij is the alpha bro tool
@benderbg
@benderbg 8 ай бұрын
5:49 This aged well.
@kingkock1
@kingkock1 2 жыл бұрын
as allWays: Amazing
@mudzingwajonah7378
@mudzingwajonah7378 3 жыл бұрын
time travelling , Hey guys its bro from the future.
@arturshakhbanov7608
@arturshakhbanov7608 Жыл бұрын
Like
@kristijanlazarev
@kristijanlazarev 2 ай бұрын
Very good, could just write everything in a sout statement, so that we dont waste time talking about how it wont do anything unless we pritn
@bharathwajp1321
@bharathwajp1321 27 күн бұрын
Broo what about HashSet???
@manuelgonzalezpalafox2627
@manuelgonzalezpalafox2627 Жыл бұрын
Ly bro 5
@damnjemy
@damnjemy Жыл бұрын
i need to learn how to combine hashsets and int ch = sc.jscnext()
@raphaelmorgan2307
@raphaelmorgan2307 3 жыл бұрын
every time you say we should like comment and subscribe to defeat the algorithm im like how do i subscribe again TnT bc ive watched like 30 of your videos i can only subscribe once lmao
@BroCodez
@BroCodez 3 жыл бұрын
Raphael Morgan You get a free pass my friend
@mathialagant
@mathialagant Жыл бұрын
dropping comment
@dev_troy8903
@dev_troy8903 11 ай бұрын
USA = Washington DC China = Beijing Russia = Moscow India = New Delhi loved having an assignment at the end 😃
@elvastaudinger4991
@elvastaudinger4991 3 жыл бұрын
USA goes ROgue!!lol
@mohanedomer9081
@mohanedomer9081 21 күн бұрын
ok
@jeronimo6742
@jeronimo6742 2 жыл бұрын
commenting, as it is my duty
@paganimarker1898
@paganimarker1898 4 ай бұрын
what is with the music behind
@swiftyninja3535
@swiftyninja3535 7 ай бұрын
time to go back to the present
@girl6994
@girl6994 4 жыл бұрын
There are too many things need to understand, such as collections , list, especially Linkedlist, it is abstract. And tree map. I don’t understand what is tree map. In Chinese they say a word 红黑树 , which means red and black tree style to store hash code.
@BroCodez
@BroCodez 4 жыл бұрын
I wonder why it's called "red and black tree". That is an interesting translation
@ActualVital
@ActualVital 4 жыл бұрын
Bro Code I think he wants a video of a Red-Black tree with code.
@girl6994
@girl6994 4 жыл бұрын
Bro Code because if you use different color to mark a tree map, it will be more easy to find a certain hash code I think. For example base level is black, and second level is red, and third level is black. But I am also don’t know, why it is called black and red tree.
@girl6994
@girl6994 4 жыл бұрын
Calibre Yes! It is red-black tree. Sorry.
@yamalaha9233
@yamalaha9233 4 ай бұрын
bro
@LogicalFinds
@LogicalFinds Жыл бұрын
8:50 imagine if the USA’s capita was Detroit 😂
@amaanshaikh6868
@amaanshaikh6868 Жыл бұрын
😹
@cordellgivens5590
@cordellgivens5590 8 ай бұрын
USA = Detroit China = Beijing India = New Delhi Russia = Moscow
Java custom exceptions 🛑
10:05
Bro Code
Рет қаралды 68 М.
Learn Hash Tables in 13 minutes #️⃣
13:26
Bro Code
Рет қаралды 301 М.
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Рет қаралды 124 МЛН
Surprise Gifts #couplegoals
00:21
Jay & Sharon
Рет қаралды 31 МЛН
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
How to open a can? 🤪 lifehack
00:25
Mr.Clabik - Friends
Рет қаралды 13 МЛН
Set and HashSet in Java - Full Tutorial
20:43
Coding with John
Рет қаралды 187 М.
Java generics ❓
22:04
Bro Code
Рет қаралды 96 М.
Hash Tables and Hash Functions
13:56
Computer Science
Рет қаралды 1,5 МЛН
ChatGPT’s Amazing New Model Feels Human (and it's Free)
25:02
Matt Wolfe
Рет қаралды 199 М.
Java enum 🪐
10:50
Bro Code
Рет қаралды 60 М.
Array vs. ArrayList in Java Tutorial - What's The Difference?
17:36
Coding with John
Рет қаралды 481 М.
How good is the latest version of ChatGPT? | BBC News
23:16
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 687 М.
Java pong game 🏓
1:07:44
Bro Code
Рет қаралды 279 М.
How about that uh?😎 #sneakers #airpods
0:13
Side Sphere
Рет қаралды 9 МЛН
Introducing GPT-4o
26:13
OpenAI
Рет қаралды 3,5 МЛН