@@ -0,0 +1,1456 @@
+package samples;%0A%0Aimport org.apache.commons.lang3.StringUtils;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0A%0A/**%0A * samples%0A *%0A * @author fqc%0A * @date 16/3/21%0A */%0Apublic class IpCount %7B%0A    /**%0A     * %E4%B8%80%E8%A1%8C%E4%B8%80%E8%A1%8C%E8%AF%BB%E5%8F%96%E6%96%87%E4%BB%B6%EF%BC%8C%E9%80%82%E5%90%88%E5%AD%97%E7%AC%A6%E8%AF%BB%E5%8F%96%EF%BC%8C%E8%8B%A5%E8%AF%BB%E5%8F%96%E4%B8%AD%E6%96%87%E5%AD%97%E7%AC%A6%E6%97%B6%E4%BC%9A%E5%87%BA%E7%8E%B0%E4%B9%B1%E7%A0%81%0A     * %E6%B5%81%E7%9A%84%E5%85%B3%E9%97%AD%E9%A1%BA%E5%BA%8F%EF%BC%9A%E5%85%88%E6%89%93%E5%BC%80%E7%9A%84%E5%90%8E%E5%85%B3%EF%BC%8C%E5%90%8E%E6%89%93%E5%BC%80%E7%9A%84%E5%85%88%E5%85%B3%EF%BC%8C%0A     * %E5%90%A6%E5%88%99%E6%9C%89%E5%8F%AF%E8%83%BD%E5%87%BA%E7%8E%B0java.io.IOException: Stream closed%E5%BC%82%E5%B8%B8%0A     * @throws java.io.IOException%0A     */%0A    public void readFile01() throws IOException %7B%0A        FileReader fr = new FileReader(%22/Users/fqc/git_workspace/Java_Basic/src/samples/2013-05-30.log%22);%0A        BufferedReader br = new BufferedReader(fr);%0A        String line = %22%22;%0A        String%5B%5D arrs = null;%0A//        while ((line = br.readLine())!=null) %7B //apache isEmpty (line = br.readLine())!=null%0A//            if (!line.equals(%22%22)) %7B//line != %22%22%0A        HashMap%3CString, List%3E logMaps = new HashMap%3CString, List%3E();;%0A//        HashSet set = new HashSet();%0A        ArrayList dateList = new ArrayList();%0A        while (StringUtils.isNotEmpty(line = br.readLine())) %7B%0A            arrs = line.split(%22 -- %5C%5C%5B%22);%0A            System.out.println(arrs%5B0%5D + %22 : %22 + arrs%5B1%5D);%0A            String ip = arrs%5B0%5D;%0A            String date = arrs%5B1%5D;%0A            dateList.add(date);%0A            logMaps.put(ip, dateList);%0A%0A        %7D%0A        br.close();%0A        fr.close();%0A        System.out.println(logMaps.get(%2227.19.74.143%22));%0A    %7D%0A%7D%0A

add ipcount