Android 打印HashMap map的键和值

        HashMap map=new HashMap


        List keys = new ArrayList<>(map.keySet());
        for (int i = 0; i < keys.size(); i++) {
            String key = keys.get(i);
            String value = map.get(key);
            post.params(key, value);
            Log.e("tagtag",key+"||"+value);
        }

 

你可能感兴趣的:(Android 打印HashMap map的键和值)