Map<String, String> map = new HashMap<>();
// Convert all Map keys to a List
List
// Convert all Map values to a List
List
// Java 8, Convert all Map keys to a List
List
.collect(Collectors.toList());
// Java 8, Convert all Map values to a List
List
.collect(Collectors.toList());
// Java 8, seem a bit long, but you can enjoy the Stream features like filter and etc.
List
.filter(x -> !"apple".equalsIgnoreCase(x))