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)); } } }
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));
}
}
}
Can you make course specifally for AI using Python?
Like creating AI projects with LLMs,local LLMs
And general introduction to AI programming.
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
Thank you bro
Bro Code used to watch sponge bob and he loves pizza😂😂😂😂😂😂
hello, i am the 1st viewer comment
after this tutorial what we need to learn
Only 7 comments? Y'all crazy
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