for (Entry<Double, String> entry : map.entrySet()) { 
        Double key = entry.getKey(); 
        String value = entry.getValue(); 
        // double nextKey = ?
        // String nextvalue = ?
        // double prevKey = ?
        // String prevValue = ?
    } 
is it possible to know what the previous element and the next element while iterating the map?
 
     
     
    