MultiMap map = new MultiValueMap(); map.put("1,1", "aaa"); map.put("1,1", "bbb"); map.put("2,2", "ccc"); map.put("2,2", "ddd"); map.put("3,3", "eee"); System.err.println(map); // Iterator iterator = map.entrySet().iterator(); // while (iterator.hasNext()) { // System.err.println(iterator.next().getClass()); // } System.err.println(map.get("1,1")); System.err.println("---------------------------------"); Iterator iterator = map.keySet().iterator(); while (iterator.hasNext()) { // System.err.println(iterator.next()); Object key = iterator.next(); Object object = map.get(key); if (object instanceof List) { List<String> valuelist = (List<String>) object; for (Object value : valuelist) { System.out.println(key + "----" + value); } } else if (object instanceof String) { System.out.println(key + "====" + object.toString()); } }
发表评论
-
Linux下web项目中File地址错误问题
2014-07-21 12:42 652String path = servletContext.g ... -
Spring MVC 表单提交 405
2014-05-05 10:17 1068Spring MVC post表单提交后返回页面报错:405 ... -
HttpSession清空
2014-04-30 13:41 1040// 销毁session session.invalid ... -
java.io.InvalidClassException异常处理
2013-07-16 16:27 16401java.io.InvalidClassException ... -
发布应用后出现问题的处理思路
2012-07-05 12:11 805发布后的应用,源码都被打成了jar包,无法进行debug,如果 ... -
HTTP404 There is no Action mapped for namespace / and action name login.
2012-06-19 12:04 1599Web项目采用SSH架构,偶尔报“There is no Ac ... -
net.sf.cglib.core.CodeGenerationException: 异常处理
2012-06-12 14:36 0做流程引用了JBPM3的包,在发布的时候经常会报一个异常: ... -
MyEclipse下有main函数类运行报错:Editor does not contain a main type
2012-03-31 10:59 5065出现这种问题的原因是,该java文件所在的包没有被MyEcl ... -
apache.commons.lang2.3学习笔记-CharEncoding
2011-12-06 21:40 935public class TestCharEncodin ... -
apache.commons.lang2.3学习笔记-ChartSetUtils
2011-12-06 21:29 1098public class TestChartSetUti ... -
apache.commons.lang2.3学习笔记-BooleanUtils
2011-12-06 21:28 1383public class TestBooleanUtil ... -
apache.commons.lang2.3学习笔记-ArrayUtils
2011-12-06 03:18 2235public class Lang { class B ... -
【转】使用Swing皮肤机制 更换皮肤
2011-09-30 08:43 1885转自:http://tech.ddvip.c ... -
【转】Date类学习总结(Calendar Date 字符串 相互转换 格式化)
2011-08-18 20:09 862Date类学习总结 1.计算某一月份的最大天数 Ca ... -
BigDecimal设置精度
2011-06-17 09:16 12816public BigDecimal setScale ... -
DecimalFormat用法 数字类型文本格式转化
2011-05-18 22:38 2336//String custom="#,###,00& ... -
【转】Java中颜色的String和Color对象之间的互相转换
2011-05-06 13:18 2545package org.signsmile; impor ... -
@incolue org.apache.jasper.JasperException处理
2011-05-05 13:15 900在jsp中 使用include 可能发生以下异常: org. ... -
JAVA数字格式化
2011-04-22 09:44 845java.text.DecimalFormat df = ne ... -
Java泛型使用
2011-04-22 09:22 765// IBean为基类 TestBean为子类 /** ...
相关推荐
org.apache.commons.lang.BitField.class org.apache.commons.lang.BooleanUtils.class org.apache.commons.lang.CharEncoding.class org.apache.commons.lang.CharRange.class org.apache.commons.lang.CharSet...
org.apache.commons.lang.BitField.class org.apache.commons.lang.BooleanUtils.class org.apache.commons.lang.CharEncoding.class org.apache.commons.lang.CharRange.class org.apache.commons.lang.CharSet...
org.apache.commons.commons-math3:3.6.1
import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods....
jar包分享,你懂的 com.springsource.org.apache.commons.io-1.4.0.jar
jar包,官方版本,自测可用
com.springsource.org.apache.commons.logging-1.1.1.jar
com.springsource.org.apache.commons.lang
com.springsource.org.apache.commons.logging-sources-1.1.1.jar
最新org.apache.commons.net..包完整、干净、实用
com.springsource.org.apache.commons.fileupload 自己打入本地Jar包即可
org.apache.commons.beanutils.jar
org.apache.commons相关的所以jar包,包括commons-beanutils-1.8.0-bin.zip;commons-betwixt-0.8.zip;commons-cli-1.1.zip;commons-codec-1.3.zip;commons-collections-3.2.1-bin.zip;commons-digester-1.8.zip...
import org.apache.commons.beanutils.PropertyUtilsBean; import org.apache.commons.lang.StringUtils; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFCellStyle; ...
com.springsource.org.apache.commons.pool-sources-1.5.3.jar源码
org.apache.commons.lang jar包
org.apache.commons.lang所有包的集合,
解决经常遇到的The import org.apache.commons.codec cannot be resolved问题,只需导入文件中的commons-codec-1.11.jar就可以,如和导入包就不赘述了。
com.springsource.org.apache.commons.dbcp-sources-1.2.2.osgi.jar源码 jar包
org.apache.commons.net.ftp.FTPClient包,不错,在实际项目和产品中使用过。