字體:小 中 大 |
|
|
|
| 2011/10/07 17:23:08瀏覽286|回應0|推薦1 | |
| ********************************************************************************* public static String getValue(Map map, String key) { StringBuffer sb = new StringBuffer(); Object val = map.get(key); if(val instanceof Collection) { Collection col = (Collection)map.get(key); if(col != null) { for(Iterator it = col.iterator(); it.hasNext(); sb.append((String)it.next())); } } return sb.toString(); } ******************************************************************************** 在map中放入新的object map.put("tel", "1234567890"); |
|
| ( 休閒生活|網路生活 ) |











