fork download
  1. 9a10,12
  2. > import java.io.FileOutputStream;
  3. > import java.io.OutputStreamWriter;
  4. > import java.io.BufferedWriter;
  5. 30c33
  6. < return this.mWord;
  7. ---
  8. > return this.mWord + "\t" + this.mValue;
  9. 71c74
  10. < static public String DefaultEncode = "JISAutoDetect";
  11. ---
  12. > static public String DefaultEncode = "UTF-8";
  13. 103,104c106,118
  14. <
  15. < System.out.println(list);
  16. ---
  17. > BufferedWriter bw = null;
  18. > try {
  19. > FileOutputStream fos = new FileOutputStream("output.txt");
  20. > bw = new BufferedWriter(new OutputStreamWriter(fos, DefaultEncode));
  21. > for(Record rcd : list) {
  22. > bw.write(rcd + System.getProperty("line.separator"));
  23. > bw.flush();
  24. > }
  25. > } catch(Exception ex) {
  26. > ex.printStackTrace();
  27. > } finally {
  28. > if(bw != null) { try { bw.close(); } catch(Exception ex) {} }
  29. > }
  30. 106c120
  31. < }
  32. \ No newline at end of file
  33. ---
  34. > }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty