我做到打印文件里面的emial地址   
下一步我要做的是 把这些emial
比较判断 判断email重复 重复2次的email放到 一起 重复3次的email放到一起。
该怎么做?FileWriter fw;
File file = new File("D:/email.txt");
FileReader in = new FileReader(file);
BufferedReader bufin = new BufferedReader(in); 
String ttt = "";
while((ttt=bufin.readLine())!=null){
System.out.println( ttt );
}打印结果是这些email地址
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【wkdgofyd0312】截止到2008-06-25 16:48:27的历史汇总数据(不包括此帖):
    发帖数:4                  发帖分:80                 
    结贴数:1                  结贴分:20                 
    未结数:3                  未结分:60                 
    结贴率:25.00 %            结分率:25.00 %            
    楼主该结一些帖子了
      

  2.   

    用map.
    如果有数据库的话,可以用分组。