{"id":150,"date":"2020-11-19T04:39:00","date_gmt":"2020-11-19T04:39:00","guid":{"rendered":"https:\/\/imwarming.com\/?p=150"},"modified":"2020-11-19T04:39:00","modified_gmt":"2020-11-19T04:39:00","slug":"%e6%96%87%e4%bb%b6%e5%86%85%e5%86%8d%e5%88%86%e7%b1%bb%e5%88%b0%e5%90%84txt%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/imwarming.com\/?p=150","title":{"rendered":"\u6587\u4ef6\u5185\u518d\u5206\u7c7b\u5230\u5404txt\u6587\u4ef6"},"content":{"rendered":"<p>\u5f53\u8001\u5e08\u53eb\u6211\u4eec\u5e2e\u4ed6\u505a\u4e8b\uff0c\u6bd4\u5982\u6587\u4ef6\u5185\u5185\u5bb9\u518d\u5206\u7c7b\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5efa\u4e2a\u9762\u677f\uff0c\u91cc\u9762\u6709\u5404\u8981\u5bfc\u5165\u6587\u4ef6\u6309\u94ae\uff0c\u5148\u628a\u5206\u7c7b\u5185\u5bb9copy\u4e0b\uff0c\u518d\u70b9\u6309\u94ae\u5bfc\u5165\u8fdbtxt\u6587\u4ef6\u5c31\u884c\u5566\u3002<\/p>\n<p>\u4ee5\u4e0b\u4e3ajava\u4ee3\u7801<\/p>\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #000000;\">package classification;\n\nimport java.awt.<\/span>*<span style=\"color: #000000;\">;\nimport java.awt.<\/span><span style=\"color: #0000ff;\">event<\/span>.*<span style=\"color: #000000;\">;\nimport javax.swing.<\/span>*<span style=\"color: #000000;\">;\nimport layout.tablelayout;\nimport java.awt.<\/span><span style=\"color: #0000ff;\">event<\/span><span style=\"color: #000000;\">.actionevent;\nimport java.awt.<\/span><span style=\"color: #0000ff;\">event<\/span><span style=\"color: #000000;\">.actionlistener;\nimport java.io.bufferedwriter;\nimport java.io.file;\nimport java.io.filenotfoundexception;\nimport java.io.filereader;\nimport java.io.filewriter;\nimport java.io.ioexception;\nimport java.io.reader;\nimport java.io.writer;\nimport java.io.bufferedreader;\nimport java.io.fileoutputstream;\nimport java.io.outputstreamwriter;\nimport java.awt.toolkit;\nimport java.awt.datatransfer.clipboard;\nimport java.awt.datatransfer.dataflavor;\nimport java.awt.datatransfer.stringselection;\nimport java.awt.datatransfer.transferable;\n\n\n<\/span><span style=\"color: #0000ff;\">public<\/span> <span style=\"color: #0000ff;\">class<\/span><span style=\"color: #000000;\"> classification extends jframe implements actionlistener{\n    <\/span><span style=\"color: #0000ff;\">public<\/span><span style=\"color: #000000;\"> classification(){\n        \n        <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">  \u521b\u5efa\u4e00\u4e2a\u7a97\u53e3\u3002<\/span>\n                frame frame = <span style=\"color: #0000ff;\">new<\/span> frame(<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">classification<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">);\n                frame.setbounds (<\/span><span style=\"color: #800080;\">1300<\/span> , <span style=\"color: #800080;\">100<\/span>, <span style=\"color: #800080;\">200<\/span>, <span style=\"color: #800080;\">450<\/span><span style=\"color: #000000;\">);\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u8bbe\u7f6e\u80cc\u666f\u989c\u8272\u3002<\/span>\n<span style=\"color: #000000;\">                frame.setbackground(color.black);\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5728\u8fd9\u4e2a\u7a97\u53e3\u521b\u5efa\u4e00\u4e2a\u7f51\u683c\u3002    <\/span>\n                <span style=\"color: #0000ff;\">double<\/span> size[][] =<span style=\"color: #000000;\">\n                    {\n                            <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">0              ,1               ,2               ,3               <\/span>\n                            {tablelayout.fill,tablelayout.fill}, <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5217<\/span>\n                            {tablelayout.fill,tablelayout.fill,tablelayout.fill,tablelayout.fill,tablelayout.fill} <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u884c<\/span>\n<span style=\"color: #000000;\">                    };\n                tablelayout layout <\/span>= <span style=\"color: #0000ff;\">new<\/span><span style=\"color: #000000;\"> tablelayout(size);\n                frame.setlayout(layout);\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u521b\u5efa\u4e00\u4e9b\u6309\u94ae.\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u7f16\u8f91\u5b57\u4f53<\/span>\n                font  b = <span style=\"color: #0000ff;\">new<\/span> font(<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u5b8b\u4f53<\/span><span style=\"color: #800000;\">\"<\/span>,font.plain,<span style=\"color: #800080;\">30<\/span><span style=\"color: #000000;\">);\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5199\u5165\u6587\u672c\u6570\u7ec4\u3002<\/span>\n                <span style=\"color: #0000ff;\">for<\/span> (<span style=\"color: #0000ff;\">int<\/span> i = <span style=\"color: #800080;\">0<\/span>;i &lt; button.length;i++<span style=\"color: #000000;\">)\n                {\n                    button[i] <\/span>= <span style=\"color: #0000ff;\">new<\/span><span style=\"color: #000000;\"> button(button[i]);\n                }\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5e94\u7528\u5b57\u4f53\u3002\n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6309\u94ae\u5b57\u4f53\u3002<\/span>\n                <span style=\"color: #0000ff;\">for<\/span>(<span style=\"color: #0000ff;\">int<\/span> i = <span style=\"color: #800080;\">0<\/span>; i &lt;= <span style=\"color: #800080;\">9<\/span>; i++<span style=\"color: #000000;\">) {\n                    button[i].setfont(b);\n                    button[i].setforeground(color.black);\n                }\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6dfb\u52a0\u6309\u94ae<\/span>\n                frame.add(button[<span style=\"color: #800080;\">0<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">0,0,0,0<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">1<\/span>\n                frame.add(button[<span style=\"color: #800080;\">1<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">1,0,1,0<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">2<\/span>\n                frame.add(button[<span style=\"color: #800080;\">2<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">0,1,0,1<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">3<\/span>\n                frame.add(button[<span style=\"color: #800080;\">3<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">1,1,1,1<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">4<\/span>\n                frame.add(button[<span style=\"color: #800080;\">4<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">0,2,0,2<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">5<\/span>\n                frame.add(button[<span style=\"color: #800080;\">5<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">1,2,1,2<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">6<\/span>\n                frame.add(button[<span style=\"color: #800080;\">6<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">0,3,0,3<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">7<\/span>\n                frame.add(button[<span style=\"color: #800080;\">7<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">1,3,1,3<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">8<\/span>\n                frame.add(button[<span style=\"color: #800080;\">8<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">0,4,0,4<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">9<\/span>\n                frame.add(button[<span style=\"color: #800080;\">9<\/span>],<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">1,4,1,4<\/span><span style=\"color: #800000;\">\"<\/span>); <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u64a4\u56de<\/span>\n\n                <span style=\"color: #0000ff;\">for<\/span>(<span style=\"color: #0000ff;\">int<\/span> i = <span style=\"color: #800080;\">0<\/span>; i &lt;= <span style=\"color: #800080;\">9<\/span>; i++<span style=\"color: #000000;\">) {\n                    button[i].addactionlistener(<\/span><span style=\"color: #0000ff;\">this<\/span><span style=\"color: #000000;\">) ;\n                }\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u7f16\u8f91\u6309\u94ae<\/span>\n                <span style=\"color: #0000ff;\">for<\/span>(<span style=\"color: #0000ff;\">int<\/span> i = <span style=\"color: #800080;\">0<\/span>; i &lt;= <span style=\"color: #800080;\">9<\/span>; i++<span style=\"color: #000000;\">) {\n                    button[i].setfont(b);\n                    button[i].setbackground(color.green);\n                }\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6dfb\u52a0\u7a97\u53e3\u5173\u95ed\u3002<\/span>\n<span style=\"color: #000000;\">                frame.addwindowlistener \n                (<\/span><span style=\"color: #0000ff;\">new<\/span><span style=\"color: #000000;\"> windowadapter()\n                    {\n                        <\/span><span style=\"color: #0000ff;\">public<\/span> <span style=\"color: #0000ff;\">void<\/span><span style=\"color: #000000;\"> windowclosing (windowevent e)\n                        {\n                            system.exit (<\/span><span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">);\n                        }\n                    }\n                );\n                \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u7a97\u53e3\u7f6e\u9876\u3002<\/span>\n                 frame.setalwaysontop(<span style=\"color: #0000ff;\">true<\/span><span style=\"color: #000000;\">);\n                 \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u663e\u793a\u7a97\u53e3\u3002<\/span>\n<span style=\"color: #000000;\">                frame.show();\n                \n        }\n    string button[] <\/span>= {<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">1<\/span><span style=\"color: #800000;\">\"<\/span>,<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">2<\/span><span style=\"color: #800000;\">\"<\/span>,<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">3<\/span><span style=\"color: #800000;\">\"<\/span>,<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">4<\/span><span style=\"color: #800000;\">\"<\/span>,<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">5<\/span><span style=\"color: #800000;\">\"<\/span>,<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">6<\/span><span style=\"color: #800000;\">\"<\/span>,<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">7<\/span><span style=\"color: #800000;\">\"<\/span>,<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">8<\/span><span style=\"color: #800000;\">\"<\/span>,<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">9<\/span><span style=\"color: #800000;\">\"<\/span>,<span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">};\n    button button[] <\/span>= <span style=\"color: #0000ff;\">new<\/span><span style=\"color: #000000;\"> button[button.length];\n    \n    <\/span><span style=\"color: #0000ff;\">public<\/span> <span style=\"color: #0000ff;\">static<\/span> <span style=\"color: #0000ff;\">void<\/span><span style=\"color: #000000;\"> main(string[] args) {\n        <\/span><span style=\"color: #0000ff;\">new<\/span><span style=\"color: #000000;\"> classification();\n    }\n    \n    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u8def\u5f84<\/span>\n    string[] s =<span style=\"color: #000000;\"> {\n            <\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">d:\\homework\\chapter1.txt<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">,\n            <\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">d:\\homework\\chapter2.txt<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">,\n            <\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">d:\\homework\\chapter3.txt<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">,\n            <\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">d:\\homework\\chapter4.txt<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">,\n            <\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">d:\\homework\\chapter5.txt<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">,\n            <\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">d:\\homework\\chapter6.txt<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">,\n            <\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">d:\\homework\\chapter7.txt<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">,\n            <\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">d:\\homework\\chapter8.txt<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">,\n            <\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">d:\\homework\\chapter9.txt<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">\n    };\n    \n    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6587\u4ef6\u8bfb\u5165\u7c98\u8d34\u677f\u5185\u5bb9<\/span>\n    <span style=\"color: #0000ff;\">public<\/span> <span style=\"color: #0000ff;\">static<\/span> <span style=\"color: #0000ff;\">void<\/span><span style=\"color: #000000;\"> method2(string filename, string content) {\n        filewriter writer <\/span>= <span style=\"color: #0000ff;\">null<\/span><span style=\"color: #000000;\">;\n        <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n            writer <\/span>= <span style=\"color: #0000ff;\">new<\/span> filewriter(filename,<span style=\"color: #0000ff;\">true<\/span><span style=\"color: #000000;\">);\n            clipboard sysclip <\/span>=<span style=\"color: #000000;\"> toolkit.getdefaulttoolkit().getsystemclipboard();\n            <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> \u83b7\u53d6\u526a\u5207\u677f\u4e2d\u7684\u5185\u5bb9<\/span>\n            transferable cliptf = sysclip.getcontents(<span style=\"color: #0000ff;\">null<\/span><span style=\"color: #000000;\">);\n            <\/span><span style=\"color: #0000ff;\">if<\/span> (cliptf != <span style=\"color: #0000ff;\">null<\/span><span style=\"color: #000000;\">) { \n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> \u68c0\u67e5\u5185\u5bb9\u662f\u5426\u662f\u6587\u672c\u7c7b\u578b<\/span>\n                <span style=\"color: #0000ff;\">if<\/span><span style=\"color: #000000;\"> (cliptf.isdataflavorsupported(dataflavor.stringflavor)) {\n                    <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                        content <\/span>=<span style=\"color: #000000;\"> (string) cliptf\n                                .gettransferdata(dataflavor.stringflavor);\n                        writer.write(content);\n                    } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e) {\n                        e.printstacktrace();\n                    }\n                }\n            }\n\n        }<\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\">(ioexception e) {\n            e.printstacktrace();\n        }\n        <\/span><span style=\"color: #0000ff;\">finally<\/span><span style=\"color: #000000;\"> {\n            <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                <\/span><span style=\"color: #0000ff;\">if<\/span>(writer != <span style=\"color: #0000ff;\">null<\/span><span style=\"color: #000000;\">) {\n                    writer.close();\n                }\n            }<\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\">(ioexception e) {\n                e.printstacktrace();\n            }\n        }\n    }\n     <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6309\u94ae\u54cd\u5e94<\/span>\n    <span style=\"color: #0000ff;\">public<\/span> <span style=\"color: #0000ff;\">void<\/span><span style=\"color: #000000;\"> actionperformed(actionevent e) {\n          <\/span><span style=\"color: #0000ff;\">if<\/span>(e.getsource() == button[<span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">])\n            <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                method2(s[<\/span><span style=\"color: #800080;\">0<\/span>],<span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">);\n            } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e1) {\n                <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> todo auto-generated catch block<\/span>\n<span style=\"color: #000000;\">                e1.printstacktrace();\n            }\n          <\/span><span style=\"color: #0000ff;\">if<\/span>(e.getsource() == button[<span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">])\n                <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                    method2(s[<\/span><span style=\"color: #800080;\">1<\/span>],<span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">);\n                } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e1) {\n                    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> todo auto-generated catch block<\/span>\n<span style=\"color: #000000;\">                    e1.printstacktrace();\n                }\n          <\/span><span style=\"color: #0000ff;\">if<\/span>(e.getsource() == button[<span style=\"color: #800080;\">2<\/span><span style=\"color: #000000;\">])\n                <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                    method2(s[<\/span><span style=\"color: #800080;\">2<\/span>], <span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">);\n                } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e1) {\n                    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> todo auto-generated catch block<\/span>\n<span style=\"color: #000000;\">                    e1.printstacktrace();\n                }\n          <\/span><span style=\"color: #0000ff;\">if<\/span>(e.getsource() == button[<span style=\"color: #800080;\">3<\/span><span style=\"color: #000000;\">])\n                <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                    method2(s[<\/span><span style=\"color: #800080;\">3<\/span>],<span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">);\n                } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e1) {\n                    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> todo auto-generated catch block<\/span>\n<span style=\"color: #000000;\">                    e1.printstacktrace();\n                }\n          <\/span><span style=\"color: #0000ff;\">if<\/span>(e.getsource() == button[<span style=\"color: #800080;\">4<\/span><span style=\"color: #000000;\">])\n                <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                    method2(s[<\/span><span style=\"color: #800080;\">4<\/span>],<span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">);\n                } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e1) {\n                    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> todo auto-generated catch block<\/span>\n<span style=\"color: #000000;\">                    e1.printstacktrace();\n                }\n          <\/span><span style=\"color: #0000ff;\">if<\/span>(e.getsource() == button[<span style=\"color: #800080;\">5<\/span><span style=\"color: #000000;\">])\n                <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                    method2(s[<\/span><span style=\"color: #800080;\">5<\/span>],<span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">);\n                } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e1) {\n                    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> todo auto-generated catch block<\/span>\n<span style=\"color: #000000;\">                    e1.printstacktrace();\n                }\n          <\/span><span style=\"color: #0000ff;\">if<\/span>(e.getsource() == button[<span style=\"color: #800080;\">6<\/span><span style=\"color: #000000;\">])\n                <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                    method2(s[<\/span><span style=\"color: #800080;\">6<\/span>],<span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">);\n                } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e1) {\n                    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> todo auto-generated catch block<\/span>\n<span style=\"color: #000000;\">                    e1.printstacktrace();\n                }\n          <\/span><span style=\"color: #0000ff;\">if<\/span>(e.getsource() == button[<span style=\"color: #800080;\">7<\/span><span style=\"color: #000000;\">])\n                <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                    method2(s[<\/span><span style=\"color: #800080;\">7<\/span>],<span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">);\n                } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e1) {\n                    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> todo auto-generated catch block<\/span>\n<span style=\"color: #000000;\">                    e1.printstacktrace();\n                }\n          <\/span><span style=\"color: #0000ff;\">if<\/span>(e.getsource() == button[<span style=\"color: #800080;\">8<\/span><span style=\"color: #000000;\">])\n                <\/span><span style=\"color: #0000ff;\">try<\/span><span style=\"color: #000000;\"> {\n                    method2(s[<\/span><span style=\"color: #800080;\">8<\/span>],<span style=\"color: #800000;\">\"\"<\/span><span style=\"color: #000000;\">);\n                } <\/span><span style=\"color: #0000ff;\">catch<\/span><span style=\"color: #000000;\"> (exception e1) {\n                    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> todo auto-generated catch block<\/span>\n<span style=\"color: #000000;\">                    e1.printstacktrace();\n                }\n    }\n    \n}<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u8001\u5e08\u53eb\u6211\u4eec\u5e2e\u4ed6\u505a\u4e8b\uff0c\u6bd4\u5982\u6587\u4ef6\u5185\u5185\u5bb9\u518d\u5206\u7c7b\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5efa\u4e2a\u9762\u677f\uff0c\u91cc\u9762\u6709\u5404\u8981\u5bfc\u5165\u6587\u4ef6\u6309\u94ae\uff0c\u5148\u628a\u5206\u7c7b\u5185\u5bb9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6587\u4ef6\u5185\u518d\u5206\u7c7b\u5230\u5404txt\u6587\u4ef6 - imwarming<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/imwarming.com\/?p=150\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6587\u4ef6\u5185\u518d\u5206\u7c7b\u5230\u5404txt\u6587\u4ef6 - imwarming\" \/>\n<meta property=\"og:description\" content=\"\u5f53\u8001\u5e08\u53eb\u6211\u4eec\u5e2e\u4ed6\u505a\u4e8b\uff0c\u6bd4\u5982\u6587\u4ef6\u5185\u5185\u5bb9\u518d\u5206\u7c7b\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5efa\u4e2a\u9762\u677f\uff0c\u91cc\u9762\u6709\u5404\u8981\u5bfc\u5165\u6587\u4ef6\u6309\u94ae\uff0c\u5148\u628a\u5206\u7c7b\u5185\u5bb9 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/imwarming.com\/?p=150\" \/>\n<meta property=\"og:site_name\" content=\"imwarming\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-19T04:39:00+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"warming\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/imwarming.com\/#website\",\"url\":\"https:\/\/imwarming.com\/\",\"name\":\"imwarming\",\"description\":\"\u6c38\u8fdc\u5e74\u8f7b\uff0c\u6c38\u8fdc\u70ed\u6cea\u76c8\u7736\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/imwarming.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/imwarming.com\/?p=150#webpage\",\"url\":\"https:\/\/imwarming.com\/?p=150\",\"name\":\"\u6587\u4ef6\u5185\u518d\u5206\u7c7b\u5230\u5404txt\u6587\u4ef6 - imwarming\",\"isPartOf\":{\"@id\":\"https:\/\/imwarming.com\/#website\"},\"datePublished\":\"2020-11-19T04:39:00+00:00\",\"dateModified\":\"2020-11-19T04:39:00+00:00\",\"author\":{\"@id\":\"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea\"},\"breadcrumb\":{\"@id\":\"https:\/\/imwarming.com\/?p=150#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/imwarming.com\/?p=150\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/imwarming.com\/?p=150#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/imwarming.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6587\u4ef6\u5185\u518d\u5206\u7c7b\u5230\u5404txt\u6587\u4ef6\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea\",\"name\":\"warming\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/imwarming.com\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g\",\"caption\":\"warming\"},\"sameAs\":[\"https:\/\/imwarming.com\"],\"url\":\"https:\/\/imwarming.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6587\u4ef6\u5185\u518d\u5206\u7c7b\u5230\u5404txt\u6587\u4ef6 - imwarming","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/imwarming.com\/?p=150","og_locale":"zh_CN","og_type":"article","og_title":"\u6587\u4ef6\u5185\u518d\u5206\u7c7b\u5230\u5404txt\u6587\u4ef6 - imwarming","og_description":"\u5f53\u8001\u5e08\u53eb\u6211\u4eec\u5e2e\u4ed6\u505a\u4e8b\uff0c\u6bd4\u5982\u6587\u4ef6\u5185\u5185\u5bb9\u518d\u5206\u7c7b\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5efa\u4e2a\u9762\u677f\uff0c\u91cc\u9762\u6709\u5404\u8981\u5bfc\u5165\u6587\u4ef6\u6309\u94ae\uff0c\u5148\u628a\u5206\u7c7b\u5185\u5bb9 [&hellip;]","og_url":"https:\/\/imwarming.com\/?p=150","og_site_name":"imwarming","article_published_time":"2020-11-19T04:39:00+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"warming","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/imwarming.com\/#website","url":"https:\/\/imwarming.com\/","name":"imwarming","description":"\u6c38\u8fdc\u5e74\u8f7b\uff0c\u6c38\u8fdc\u70ed\u6cea\u76c8\u7736","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/imwarming.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"https:\/\/imwarming.com\/?p=150#webpage","url":"https:\/\/imwarming.com\/?p=150","name":"\u6587\u4ef6\u5185\u518d\u5206\u7c7b\u5230\u5404txt\u6587\u4ef6 - imwarming","isPartOf":{"@id":"https:\/\/imwarming.com\/#website"},"datePublished":"2020-11-19T04:39:00+00:00","dateModified":"2020-11-19T04:39:00+00:00","author":{"@id":"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea"},"breadcrumb":{"@id":"https:\/\/imwarming.com\/?p=150#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/imwarming.com\/?p=150"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/imwarming.com\/?p=150#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/imwarming.com\/"},{"@type":"ListItem","position":2,"name":"\u6587\u4ef6\u5185\u518d\u5206\u7c7b\u5230\u5404txt\u6587\u4ef6"}]},{"@type":"Person","@id":"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea","name":"warming","image":{"@type":"ImageObject","@id":"https:\/\/imwarming.com\/#personlogo","inLanguage":"zh-Hans","url":"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g","caption":"warming"},"sameAs":["https:\/\/imwarming.com"],"url":"https:\/\/imwarming.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=150"}],"version-history":[{"count":0,"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts\/150\/revisions"}],"wp:attachment":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}