今天做着做着项目,突发奇想,决定把自己常用的Java数据类型整理一下(Java高手和基础好的网友别再看下去了,跪求勿喷),都是很基础很简单的东西,但是笔者觉得很有必要,好记性不如烂笔头,自己为了方便以后的开发吧,Java高手直接无视这篇博客吧,仅给有需要的人看,未完待续!
List<String> counList=new ArrayList<String>();//定义数组链表
String country[]=coun.split(",");//定义数组,分割字符串
Map<String ,String> map = new HashMap<String,String>();//定义哈希表
直接无视下面即可:
/**
* ###########
* 异常件汇总导出-异常件汇总
* 对按国家查询出来数据进行处理统计
* @param map
* @return List<AbnormalMailEntity>
* @author YHua
* @date 2014.11.21
*/
public List<AbnormalMailEntity> toExportAbnormalMail(Map<String,String> map){
String coun=map.get("coun");//国家的字符串,以逗号分开
List<String> counList=new ArrayList<String>();
String country[]=coun.split(",");
for(int i=0;i<country.length;i++){//测试用的,没有意义的代码
counList.add(country[i]);
}
for(int i=0;i<country.length;i++){
logisticTimeLimitDao.queryCountryAbnormalMailList(country[i],map);
}
**********************切断下面的代码*********************************************
Java常用的数据结构与类型(Map,数组,泛型等等)——Java篇
原文地址:http://blog.csdn.net/yang_best/article/details/41350953