9a10,12
> import java.io.FileOutputStream;
> import java.io.OutputStreamWriter;
> import java.io.BufferedWriter;
30c33
< return this.mWord;
---
> return this.mWord + "\t" + this.mValue;
71c74
< static public String DefaultEncode = "JISAutoDetect";
---
> static public String DefaultEncode = "UTF-8";
103,104c106,118
<
< System.out.println(list);
---
> BufferedWriter bw = null;
> try {
> FileOutputStream fos = new FileOutputStream("output.txt");
> bw = new BufferedWriter(new OutputStreamWriter(fos, DefaultEncode));
> for(Record rcd : list) {
> bw.write(rcd + System.getProperty("line.separator"));
> bw.flush();
> }
> } catch(Exception ex) {
> ex.printStackTrace();
> } finally {
> if(bw != null) { try { bw.close(); } catch(Exception ex) {} }
> }
106c120
< }
\ No newline at end of file
---
> }
OWExMCwxMgo+IGltcG9ydCBqYXZhLmlvLkZpbGVPdXRwdXRTdHJlYW07Cj4gaW1wb3J0IGphdmEuaW8uT3V0cHV0U3RyZWFtV3JpdGVyOwo+IGltcG9ydCBqYXZhLmlvLkJ1ZmZlcmVkV3JpdGVyOwozMGMzMwo8IAkgICAgCXJldHVybiB0aGlzLm1Xb3JkOwotLS0KPiAJICAgIAlyZXR1cm4gdGhpcy5tV29yZCArICJcdCIgKyB0aGlzLm1WYWx1ZTsKNzFjNzQKPCAJc3RhdGljIHB1YmxpYyBTdHJpbmcgRGVmYXVsdEVuY29kZSAgID0gIkpJU0F1dG9EZXRlY3QiOwotLS0KPiAJc3RhdGljIHB1YmxpYyBTdHJpbmcgRGVmYXVsdEVuY29kZSAgID0gIlVURi04IjsKMTAzLDEwNGMxMDYsMTE4CjwgCjwgCQlTeXN0ZW0ub3V0LnByaW50bG4obGlzdCk7Ci0tLQo+ICAgICAgICAgQnVmZmVyZWRXcml0ZXIgYncgPSBudWxsOwo+ICAgICAgICAgdHJ5IHsKPiAgICAgICAgICAgICBGaWxlT3V0cHV0U3RyZWFtIGZvcyA9IG5ldyBGaWxlT3V0cHV0U3RyZWFtKCJvdXRwdXQudHh0Iik7Cj4gICAgICAgICAgICAgYnc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