Java tutorial
//package com.java2s; import java.util.List; import java.util.Map; public class Main { public static Map<String, String> getFromFsNumber(String fsNumber, List<Map<String, String>> all) { for (Map<String, String> o : all) { if (o != null && o.get("fsNumber") != null && fsNumber != null) { if (o.get("fsNumber").equalsIgnoreCase(fsNumber)) { return o; } } } return null; } }