I hava a structure Map : 

```
Map<String, Double> map = new LinkedHashMap<>();

```

I don't know the key, but I want to pick up the first element and the last element, how can I achieve conveniently.