Java examples for Collection Framework:LinkedHashMap
Remove value from LinkedHashMap
import java.util.LinkedHashMap; public class Main { public static void main(String[] args) { // w w w . j a va 2 s . c o m //create LinkedHashMap object LinkedHashMap lHashMap = new LinkedHashMap(); //add key value pairs to LinkedHashMap lHashMap.put("1","One"); lHashMap.put("2","Two"); lHashMap.put("3","Three"); Object obj = lHashMap.remove("2"); System.out.println(obj + " Removed from LinkedHashMap"); } }