String split out of memory
问题 I have a large collection of tab separated text data in the form of DATE NAME MESSAGE . By large I mean, a collection of 1.76GB divided into 1075 actual files. I have to get the NAME data from all the files. Till now I have this: File f = new File(directory); File files[] = f.listFiles(); // HashSet<String> all = new HashSet<String>(); ArrayList<String> userCount = new ArrayList<String>(); for (File file : files) { if (file.getName().endsWith(".txt")) { System.out.println(file.getName());