Java tutorial
//package com.java2s; import android.util.Log; import android.util.SparseArray; public class Main { private static void print(SparseArray<String> strs) { for (int i = 0; i < strs.size(); i++) { Log.i("XJ", "key = " + strs.keyAt(i) + ",value = " + strs.valueAt(i)); } } }