Map hashMap = new HashMap<>(); for (Integer key : hashMap.keySet()) { String value = hashMap.get(key); Log.i(TAG, "key: " + key +"value: "+value); }