Java examples for Collection Framework:LinkedHashMap
Check if a particular value exists in LinkedHashMap
import java.util.LinkedHashMap; public class Main { public static void main(String[] args) { LinkedHashMap lHashMap = new LinkedHashMap(); // w w w .j a v a2s . com lHashMap.put("1","One"); lHashMap.put("2","Two"); lHashMap.put("3","Three"); boolean blnExists = lHashMap.containsValue("Two"); System.out.println("Two exists in LinkedHashMap ? : " + blnExists); } }