你这几个value都是数组, String val = entry.getValue().toString(); 改成 Object obj = entry.getValue(); String val = ""; if (obj instanceof String[]){ String[] strs = (String[])obj; val = Arrays.toString(strs);//jdk1.5以上才支持,1.4的话就自己循环 }else{ val = obj.toString(); }