摘要:
什么是迭代器 使用循环遍历集合 普通for循环 for(int i=0;i<10;i++){} 增强for循环 for(String str:list){} 什么是迭代器Iterator Iterator是Java中的一个接口,核心作用就是用来遍历容器的元素,当容器实现了Iterator接口后,可以 阅读全文
摘要:
json转map Map<String, 实体类> titleMap=JSON.parseObject(JSON字符串, new TypeReference<HashMap<String, 实体类>>() {}); json转对象 Student student = JSON.parseObject 阅读全文
摘要:
类注解 打开file->setting->Editor->File and Code Templates->Includes->File Header #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end 阅读全文