I have a list of Strings:
List<String> countries;
it contains countries, e.g.:
Austria, Poland, England
and I have a map:
Map<String, String> data;
This map contains entries such as:
one | Austria
two | Germany
three | France
etc.
How can I filter the map so that at the end it has only the entries that are not in the list? For the example given above, the output map would contain:
two | Germany
three | France
I tried using java8 filters, but with no positive result, could you help me with that?