SyntaxFix
Write A Post
Hire A Developer
Questions
Java 8 way of doing,
String firstKey = map.keySet().stream().findFirst().get();