import java.util.LinkedHashMap; import java.util.Map; /** * LinkedListed */ public class LinkedListed { public static void main(String[] args) { Map linkHashMap = new LinkedHashMap<>(); linkHashMap.put("AMD", 8); linkHashMap.put("Apple", 12); linkHashMap.put("Intel", 10); System.out.println("Our hashlinkedMap is: " + linkHashMap); // get the value of a key in a hashlinkedMap System.out.println("The CPU cores on AMD is: " + linkHashMap.get("AMD")); for (Map.Entry entry : linkHashMap.entrySet()) { System.out.println(entry.getKey() + " " + entry.getValue()); } } }