List<String> list= bs.findJson(); try { BufferedWriter bw = new BufferedWriter(new FileWriter("d:\b.txt")); for (String s : list) { bw.write(s); bw.newLine(); bw.flush(); } bw.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }