map.value set java code example Example: how to get a set from a map in java Collection theValues = map.values();