提示:您可在线编辑运行本教程的实例 - 运行实例,去试试!
从LinkedHashMap中移除值
/** n o w j a v a . c o m **/ import java.util.LinkedHashMap; public class Main { public static void main(String[] args) { //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(