Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
String key = map.entrySet().stream().map(e -> e.getKey()).findFirst().get();
String val = map.entrySet().stream().map(e -> e.getValue()).findFirst().get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment