SyntaxFix
Write A Post
Hire A Developer
Questions
Here is the general solution if you really only want the first key's value
Object firstKey = myHashMap.keySet().toArray()[0]; Object valueForFirstKey = myHashMap.get(firstKey);