一、善于发现问题,将所有的问题串起来,找到解决问题的方案、步骤。要将问题进行一些深入思考。没有人去帮你发现你的问题,只有你自己,要学会积极反馈。要有信心。
二、面向对象、集合、IO、泛型
三、I/O 集合 对象
文件:位置随意,数据格式:ID,name,gender,score,address
读取文件数据后,放到对象User
将User放入集合中
集合中的User,按照address,gender,分组,且每个组内的分数还要排序。
-如:北京,男;上海,女
或:文件位置随意,存储数据格式如下:ID,name,age;读取后放入数据库
public class Topic11{ //读取文件数据 //对数据进行解析 //入库 public static void main(String[] args){ } //1、读取文件 public static List<String> readFile(String path){ new File file = new File(path); final BufferedReader reader = new BufferedReader(file); String val = null; while((val = reader.readLine())!=null){ } } }