本文共 544 字,大约阅读时间需要 1 分钟。
private void printXML(List list) throws BusinessExceptions{ StringBuffer sb = new StringBuffer(); sb.append(" "); sb.append(" "); for (Map map : list) { Iterator it = map.keySet().iterator(); sb.append(" "); while (it.hasNext()) { String key = (String) it.next(); sb .append("<").append(key).append(">") .append(map.get(key)) .append(" "); } sb.append(""); } sb.append(" "); System.out.println(sb.toString()); }
转载于:https://my.oschina.net/wjgood/blog/30610