[Solved] Keyset to Set of string [closed]


map.keySet().stream().map(Object::toString).collect(toCollection(LinkedHashSet::new));

solved Keyset to Set of string [closed]