我從HashMap中獲得價值方法從哈希映射
Map<String, Object> mapObj = new HashMap<String, Object>();
String[] strArray = {"String1", "String2"};
mapObj.put("string_array",strArray);
//trying to print:
for (String entry : mapObj.keySet()) {
Log.v("", "map entry "+ entry);
Log.v("", "map value "+ mapObj.get(entry));
}
實際輸出面臨的問題檢索值:[Ljava.lang.String; @ 410ee550
預期:String1中String2的
謝謝。我得到了答案 – androidraj