void (Map<String, String[]> map) { List<String> result = new ArrayList<>(); for(Map.Entry<String, String[]> entry: m<caret>ap.entrySet()) { if(entry.getKey().startsWith("x")) { String[] arr = entry.getValue(); for (String str : arr) { result.add(str.trim()); } } } }