import java.util.HashMap; public class Main { public static void main(String[] args) { // HashMap = A data structure that stores key-value pairs // Keys are unique, but Values can be duplicated // Does not maintain any order, but is memory efficient // HashMap HashMap map = new HashMap(); map.put("apple", 0.50); map.put("orange", 0.50); map.put("banana", 0.25); map.put("coconut", 1.00); //System.out.println(map); //map.remove("apple"); //map.get("coconut"); //map.containsKey("pineapple"); //map.containsValue(1.00); //map.size(); for(String key : map.keySet()){ System.out.println(key + " : $" + map.get(key)); } } }
@FromTheWombTotheGraveАй бұрын
Can you make course specifally for AI using Python? Like creating AI projects with LLMs,local LLMs And general introduction to AI programming.
@MatthewLitwizАй бұрын
Tf u did java content again and im just finding out 2 weeks later, man i got catchup todo, ur vids truly the best, especially java to me
@MassiveKittenFire-vw1cw19 күн бұрын
In the for loop, why can't you get you the number of keys by using map.size()?
@Seif285Ай бұрын
Thank you bro
@pubgnoob2000Ай бұрын
Bro Code used to watch sponge bob and he loves pizza😂😂😂😂😂😂
@pmuni2972Ай бұрын
after this tutorial what we need to learn
@IMODURYTАй бұрын
hello, i am the 1st viewer comment
@NyxentiousАй бұрын
Only 7 comments? Y'all crazy
@Goodluck-ig2nzАй бұрын
Hello i liked your video and i believe i am entillted to one reply can i get a typescript tutorial please reply i have got an interview next week