{"id":103892,"date":"2026-09-11T14:09:01","date_gmt":"2026-09-11T06:09:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/103892.html"},"modified":"2026-09-11T14:09:01","modified_gmt":"2026-09-11T06:09:01","slug":"day-14%ef%bc%9ajava%e7%b1%bb%e4%b8%8e%e5%af%b9%e8%b1%a1-%c2%b7-%e5%b1%9e%e6%80%a7-%c2%b7-%e8%a1%8c%e4%b8%ba-%c2%b7-%e5%88%9b%e5%bb%ba%e5%af%b9%e8%b1%a1-%c2%b7-%e5%af%b9%e8%b1%a1%e8%b0%83%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/103892.html","title":{"rendered":"Day 14\uff1aJava\u7c7b\u4e0e\u5bf9\u8c61 \u00b7 \u5c5e\u6027 \u00b7 \u884c\u4e3a \u00b7 \u521b\u5efa\u5bf9\u8c61 \u00b7 \u5bf9\u8c61\u8c03\u7528"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"-toc\" style=\"margin-left:0px\">\n<p id=\"%E7%AC%AC%E4%B8%80%E9%83%A8%E5%88%86%EF%BC%9ADay%2013%20%E7%BB%83%E4%B9%A0%E7%AD%94%E6%A1%88-toc\" style=\"margin-left:0px\">\u7b2c\u4e00\u90e8\u5206&#xff1a;Day 13 \u7ec3\u4e60\u7b54\u6848<\/p>\n<p id=\"%E7%BB%83%E4%B9%A01%EF%BC%9A%E7%BB%99%20ATM%20%E5%A2%9E%E5%8A%A0%E2%80%9C%E4%BF%AE%E6%94%B9%E5%AF%86%E7%A0%81%E2%80%9D%E5%8A%9F%E8%83%BD%EF%BC%88%E8%8F%9C%E5%8D%95%E7%AC%AC6%E9%A1%B9%EF%BC%89-toc\" style=\"margin-left:40px\">\u7ec3\u4e601&#xff1a;\u7ed9 ATM \u589e\u52a0\u201c\u4fee\u6539\u5bc6\u7801\u201d\u529f\u80fd&#xff08;\u83dc\u5355\u7b2c6\u9879&#xff09;<\/p>\n<p id=\"%E7%BB%83%E4%B9%A02%EF%BC%9A%E5%8F%96%E6%AC%BE%E6%97%B6%E5%A2%9E%E5%8A%A0%E9%99%90%E5%88%B6%EF%BC%9A%E5%8D%95%E6%AC%A1%E6%9C%80%E5%A4%9A%E5%8F%96%205000-toc\" style=\"margin-left:40px\">\u7ec3\u4e602&#xff1a;\u53d6\u6b3e\u65f6\u589e\u52a0\u9650\u5236&#xff1a;\u5355\u6b21\u6700\u591a\u53d6 5000<\/p>\n<p id=\"%E7%BB%83%E4%B9%A03%EF%BC%9A%E7%94%A8%E6%95%B0%E7%BB%84%E8%AE%B0%E5%BD%95%E6%9C%80%E8%BF%91%205%20%E7%AC%94%E6%93%8D%E4%BD%9C%E9%87%91%E9%A2%9D%EF%BC%88%E5%AD%98%E6%AC%BE%E6%AD%A3%E3%80%81%E5%8F%96%E6%AC%BE%E8%B4%9F%EF%BC%89%EF%BC%8C%E5%B9%B6%E6%8F%90%E4%BE%9B%E2%80%9C%E6%89%93%E5%8D%B0%E6%B5%81%E6%B0%B4%E2%80%9D-toc\" style=\"margin-left:40px\">\u7ec3\u4e603&#xff1a;\u7528\u6570\u7ec4\u8bb0\u5f55\u6700\u8fd1 5 \u7b14\u64cd\u4f5c\u91d1\u989d&#xff08;\u5b58\u6b3e\u6b63\u3001\u53d6\u6b3e\u8d1f&#xff09;&#xff0c;\u5e76\u63d0\u4f9b\u201c\u6253\u5370\u6d41\u6c34\u201d<\/p>\n<p id=\"%E7%BB%83%E4%B9%A04%EF%BC%9A%E7%99%BB%E5%BD%95%E6%88%90%E5%8A%9F%E5%90%8E%E6%98%BE%E7%A4%BA%E9%9A%90%E8%97%8F%E8%B4%A6%E5%8F%B7%EF%BC%881001%E2%86%921**1%EF%BC%89%EF%BC%8C%E5%B9%B6%E7%BB%9F%E8%AE%A1%E7%99%BB%E5%BD%95%E5%A4%B1%E8%B4%A5%E6%80%BB%E6%AC%A1%E6%95%B0-toc\" style=\"margin-left:40px\">\u7ec3\u4e604&#xff1a;\u767b\u5f55\u6210\u529f\u540e\u663e\u793a\u9690\u85cf\u8d26\u53f7&#xff08;1001\u21921**1&#xff09;&#xff0c;\u5e76\u7edf\u8ba1\u767b\u5f55\u5931\u8d25\u603b\u6b21\u6570<\/p>\n<p id=\"%E7%AC%AC%E4%BA%8C%E9%83%A8%E5%88%86%EF%BC%9ADay%2014%20%E8%AF%A6%E7%BB%86%E6%95%99%E7%A8%8B-toc\" style=\"margin-left:0px\">\u7b2c\u4e8c\u90e8\u5206&#xff1a;Day 14 \u8be6\u7ec6\u6559\u7a0b<\/p>\n<p id=\"%E4%BB%8A%E6%97%A5%E7%9B%AE%E6%A0%87-toc\" style=\"margin-left:40px\">\u4eca\u65e5\u76ee\u6807<\/p>\n<p id=\"%E4%B8%80%E3%80%81%E5%85%88%E5%BB%BA%E7%AB%8B%E6%A6%82%E5%BF%B5%EF%BC%88%E4%B8%80%E7%9C%8B%E5%B0%B1%E6%87%82%EF%BC%89-toc\" style=\"margin-left:40px\">\u4e00\u3001\u5148\u5efa\u7acb\u6982\u5ff5&#xff08;\u4e00\u770b\u5c31\u61c2&#xff09;<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E4%BB%8E%E6%95%B0%E7%BB%84%E5%8D%87%E7%BA%A7%E5%88%B0%E5%AF%B9%E8%B1%A1%EF%BC%9F-toc\" style=\"margin-left:40px\">\u4e8c\u3001\u4e3a\u4ec0\u4e48\u8981\u4ece\u6570\u7ec4\u5347\u7ea7\u5230\u5bf9\u8c61&#xff1f;<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E6%9C%80%E5%B0%8F%E4%BE%8B%E5%AD%90%EF%BC%9A%E5%AE%9A%E4%B9%89%E7%B1%BB%20%E2%86%92%20%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1%20%E2%86%92%20%E8%B0%83%E7%94%A8-toc\" style=\"margin-left:40px\">\u4e09\u3001\u6700\u5c0f\u4f8b\u5b50&#xff1a;\u5b9a\u4e49\u7c7b \u2192 \u521b\u5efa\u5bf9\u8c61 \u2192 \u8c03\u7528<\/p>\n<p id=\"%E5%AD%A6%E4%B9%A0%E8%B7%AF%E5%BE%84-toc\" style=\"margin-left:80px\">\u5b66\u4e60\u8def\u5f84<\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E9%80%90%E9%A1%B9%E7%B2%BE%E8%AE%B2-toc\" style=\"margin-left:40px\">\u56db\u3001\u9010\u9879\u7cbe\u8bb2<\/p>\n<p id=\"1%EF%BC%89%E5%B1%9E%E6%80%A7%E5%86%99%E5%9C%A8%E5%93%AA%EF%BC%9F-toc\" style=\"margin-left:80px\">1&#xff09;\u5c5e\u6027\u5199\u5728\u54ea&#xff1f;<\/p>\n<p id=\"2%EF%BC%89%E8%A1%8C%E4%B8%BA%E6%80%8E%E4%B9%88%E5%86%99%EF%BC%9F-toc\" style=\"margin-left:80px\">2&#xff09;\u884c\u4e3a\u600e\u4e48\u5199&#xff1f;<\/p>\n<p id=\"3%EF%BC%89new%C2%A0%E5%81%9A%E4%BA%86%E4%BB%80%E4%B9%88%EF%BC%9F-toc\" style=\"margin-left:80px\">3&#xff09;new\u00a0\u505a\u4e86\u4ec0\u4e48&#xff1f;<\/p>\n<p id=\"4%EF%BC%89%E8%B0%83%E7%94%A8%E5%9B%BA%E5%AE%9A%E5%A7%BF%E5%8A%BF-toc\" style=\"margin-left:80px\">4&#xff09;\u8c03\u7528\u56fa\u5b9a\u59ff\u52bf<\/p>\n<p id=\"%E4%BA%94%E3%80%81static%20%E6%96%B9%E6%B3%95%20vs%20%E5%AF%B9%E8%B1%A1%E6%96%B9%E6%B3%95-toc\" style=\"margin-left:40px\">\u4e94\u3001static \u65b9\u6cd5 vs \u5bf9\u8c61\u65b9\u6cd5<\/p>\n<p id=\"%E5%85%AD%E3%80%81%E7%BB%BC%E5%90%88%E6%A1%88%E4%BE%8B%EF%BC%9AAccount%20%E8%B4%A6%E6%88%B7%E7%B1%BB%EF%BC%88%E6%89%BF%E6%8E%A5%20ATM%EF%BC%89-toc\" style=\"margin-left:40px\">\u516d\u3001\u7efc\u5408\u6848\u4f8b&#xff1a;Account \u8d26\u6237\u7c7b&#xff08;\u627f\u63a5 ATM&#xff09;<\/p>\n<p id=\"%E4%B8%83%E3%80%81%E5%AF%B9%E8%B1%A1%E6%95%B0%E7%BB%84%EF%BC%88%E4%B8%BA%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E6%89%93%E5%9F%BA%E7%A1%80%EF%BC%89-toc\" style=\"margin-left:40px\">\u4e03\u3001\u5bf9\u8c61\u6570\u7ec4&#xff08;\u4e3a\u7ba1\u7406\u7cfb\u7edf\u6253\u57fa\u7840&#xff09;<\/p>\n<p id=\"%E5%85%AB%E3%80%81%E5%BB%BA%E8%AE%AE%E4%BD%A0%E8%BF%99%E6%A0%B7%E7%BB%83-toc\" style=\"margin-left:40px\">\u516b\u3001\u5efa\u8bae\u4f60\u8fd9\u6837\u7ec3<\/p>\n<p id=\"%E4%B9%9D%E3%80%81%E8%BF%98%E6%9C%89%E6%B2%A1%E6%9C%89%E5%88%AB%E7%9A%84%E5%86%99%E6%B3%95%EF%BC%9F-toc\" style=\"margin-left:40px\">\u4e5d\u3001\u8fd8\u6709\u6ca1\u6709\u522b\u7684\u5199\u6cd5&#xff1f;<\/p>\n<p id=\"%E5%8D%81%E3%80%81%E5%9B%BA%E5%AE%9A%E5%86%99%E6%B3%95-toc\" style=\"margin-left:40px\">\u5341\u3001\u56fa\u5b9a\u5199\u6cd5<\/p>\n<p id=\"%E4%BB%8A%E6%97%A5%E5%BF%85%E4%BC%9A-toc\" style=\"margin-left:40px\">\u4eca\u65e5\u5fc5\u4f1a<\/p>\n<p id=\"%E7%AC%AC%E4%B8%89%E9%83%A8%E5%88%86%EF%BC%9ADay%2014%20%E8%AF%BE%E5%90%8E%E7%BB%83%E4%B9%A0-toc\" style=\"margin-left:0px\">\u7b2c\u4e09\u90e8\u5206&#xff1a;Day 14 \u8bfe\u540e\u7ec3\u4e60<\/p>\n<\/p>\n<h2 id=\"%E7%AC%AC%E4%B8%80%E9%83%A8%E5%88%86%EF%BC%9ADay%2013%20%E7%BB%83%E4%B9%A0%E7%AD%94%E6%A1%88\">\u7b2c\u4e00\u90e8\u5206&#xff1a;Day 13 \u7ec3\u4e60\u7b54\u6848<\/h2>\n<hr \/>\n<h3 id=\"%E7%BB%83%E4%B9%A01%EF%BC%9A%E7%BB%99%20ATM%20%E5%A2%9E%E5%8A%A0%E2%80%9C%E4%BF%AE%E6%94%B9%E5%AF%86%E7%A0%81%E2%80%9D%E5%8A%9F%E8%83%BD%EF%BC%88%E8%8F%9C%E5%8D%95%E7%AC%AC6%E9%A1%B9%EF%BC%89\">\u7ec3\u4e601&#xff1a;\u7ed9 ATM \u589e\u52a0\u201c\u4fee\u6539\u5bc6\u7801\u201d\u529f\u80fd&#xff08;\u83dc\u5355\u7b2c6\u9879&#xff09;<\/h3>\n<p>import java.util.Scanner; \/\/ \u5bfc\u5165\u952e\u76d8\u8f93\u5165\u5de5\u5177<\/p>\n<p>public class Day13Ex1 { \/\/ \u516c\u5171\u7c7b&#xff0c;\u6587\u4ef6\u540d\u5fc5\u987b\u662fDay13Ex1.java<br \/>\n    static String[] ids &#061; {&#034;1001&#034;, &#034;1002&#034;}; \/\/ \u8d26\u53f7\u6570\u7ec4<br \/>\n    static String[] pwds &#061; {&#034;123456&#034;, &#034;234567&#034;}; \/\/ \u5bc6\u7801\u6570\u7ec4<br \/>\n    static Scanner sc &#061; new Scanner(System.in); \/\/ \u521b\u5efaScanner<br \/>\n    static int currentIndex &#061; 0; \/\/ \u6f14\u793a&#xff1a;\u5047\u8bbe\u5df2\u767b\u5f55\u7b2c0\u4e2a\u7528\u6237<\/p>\n<p>    public static void main(String[] args) { \/\/ \u7a0b\u5e8f\u5165\u53e3<br \/>\n        System.out.println(&#034;\u5f53\u524d\u53ef\u628a\u672c\u65b9\u6cd5\u63a5\u5230\u83dc\u5355 case 6&#034;); \/\/ \u4f7f\u7528\u63d0\u793a<br \/>\n        changePassword(); \/\/ \u8c03\u7528\u4fee\u6539\u5bc6\u7801<br \/>\n        System.out.println(&#034;\u4fee\u6539\u540e\u5bc6\u7801&#xff1a;&#034; &#043; pwds[currentIndex]); \/\/ \u9a8c\u8bc1\u7ed3\u679c<br \/>\n    }<\/p>\n<p>    public static void changePassword() { \/\/ \u4fee\u6539\u5f53\u524d\u7528\u6237\u5bc6\u7801<br \/>\n        System.out.print(&#034;\u8bf7\u8f93\u5165\u539f\u5bc6\u7801&#xff1a;&#034;); \/\/ \u63d0\u793a\u8f93\u5165\u539f\u5bc6\u7801<br \/>\n        String oldPwd &#061; sc.next(); \/\/ \u8bfb\u53d6\u539f\u5bc6\u7801<br \/>\n        if (!pwds[currentIndex].equals(oldPwd)) { \/\/ \u539f\u5bc6\u7801\u4e0d\u5bf9<br \/>\n            System.out.println(&#034;\u539f\u5bc6\u7801\u9519\u8bef&#034;); \/\/ \u63d0\u793a\u9519\u8bef<br \/>\n            return; \/\/ \u7ed3\u675f&#xff0c;\u4e0d\u4fee\u6539<br \/>\n        }<br \/>\n        System.out.print(&#034;\u8bf7\u8f93\u5165\u65b0\u5bc6\u7801&#xff1a;&#034;); \/\/ \u63d0\u793a\u65b0\u5bc6\u7801<br \/>\n        String newPwd &#061; sc.next(); \/\/ \u8bfb\u53d6\u65b0\u5bc6\u7801<br \/>\n        System.out.print(&#034;\u8bf7\u786e\u8ba4\u65b0\u5bc6\u7801&#xff1a;&#034;); \/\/ \u63d0\u793a\u786e\u8ba4<br \/>\n        String confirm &#061; sc.next(); \/\/ \u8bfb\u53d6\u786e\u8ba4\u5bc6\u7801<br \/>\n        if (!newPwd.equals(confirm)) { \/\/ \u4e24\u6b21\u4e0d\u4e00\u81f4<br \/>\n            System.out.println(&#034;\u4e24\u6b21\u65b0\u5bc6\u7801\u4e0d\u4e00\u81f4&#034;); \/\/ \u63d0\u793a<br \/>\n            return; \/\/ \u7ed3\u675f&#xff0c;\u4e0d\u4fee\u6539<br \/>\n        }<br \/>\n        pwds[currentIndex] &#061; newPwd; \/\/ \u5199\u56de\u5f53\u524d\u7528\u6237\u5bc6\u7801<br \/>\n        System.out.println(&#034;\u5bc6\u7801\u4fee\u6539\u6210\u529f&#034;); \/\/ \u6210\u529f\u63d0\u793a<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*<br \/>\n\u9884\u671f\u8f93\u51fa&#xff08;\u539f\u5bc6\u7801123456&#xff0c;\u65b0\u5bc6\u7801111111\u5e76\u786e\u8ba4&#xff09;&#xff1a;<br \/>\n\u5f53\u524d\u53ef\u628a\u672c\u65b9\u6cd5\u63a5\u5230\u83dc\u5355 case 6<br \/>\n\u8bf7\u8f93\u5165\u539f\u5bc6\u7801&#xff1a;123456<br \/>\n\u8bf7\u8f93\u5165\u65b0\u5bc6\u7801&#xff1a;111111<br \/>\n\u8bf7\u786e\u8ba4\u65b0\u5bc6\u7801&#xff1a;111111<br \/>\n\u5bc6\u7801\u4fee\u6539\u6210\u529f<br \/>\n\u4fee\u6539\u540e\u5bc6\u7801&#xff1a;111111<br \/>\n*\/ <\/p>\n<hr \/>\n<h3 id=\"%E7%BB%83%E4%B9%A02%EF%BC%9A%E5%8F%96%E6%AC%BE%E6%97%B6%E5%A2%9E%E5%8A%A0%E9%99%90%E5%88%B6%EF%BC%9A%E5%8D%95%E6%AC%A1%E6%9C%80%E5%A4%9A%E5%8F%96%205000\">\u7ec3\u4e602&#xff1a;\u53d6\u6b3e\u65f6\u589e\u52a0\u9650\u5236&#xff1a;\u5355\u6b21\u6700\u591a\u53d6 5000<\/h3>\n<p>import java.util.Scanner; \/\/ \u5bfc\u5165Scanner<\/p>\n<p>public class Day13Ex2 { \/\/ \u516c\u5171\u7c7b<br \/>\n    static double balance &#061; 8000.0; \/\/ \u6f14\u793a\u4f59\u989d<br \/>\n    static Scanner sc &#061; new Scanner(System.in); \/\/ \u952e\u76d8\u8f93\u5165<\/p>\n<p>    public static void main(String[] args) { \/\/ \u5165\u53e3<br \/>\n        withdraw(); \/\/ \u8c03\u7528\u53d6\u6b3e<br \/>\n        System.out.println(&#034;\u4f59\u989d&#xff1a;&#034; &#043; balance); \/\/ \u6253\u5370\u4f59\u989d<br \/>\n    }<\/p>\n<p>    public static void withdraw() { \/\/ \u5e26\u5355\u7b14\u9650\u989d\u7684\u53d6\u6b3e<br \/>\n        System.out.print(&#034;\u8bf7\u8f93\u5165\u53d6\u6b3e\u91d1\u989d&#xff1a;&#034;); \/\/ \u63d0\u793a<br \/>\n        double amount &#061; sc.nextDouble(); \/\/ \u8bfb\u53d6\u91d1\u989d<br \/>\n        if (amount &lt;&#061; 0) { \/\/ \u91d1\u989d\u5fc5\u987b\u4e3a\u6b63<br \/>\n            System.out.println(&#034;\u91d1\u989d\u5fc5\u987b\u5927\u4e8e0&#034;); \/\/ \u63d0\u793a<br \/>\n            return; \/\/ \u7ed3\u675f<br \/>\n        }<br \/>\n        if (amount &gt; 5000) { \/\/ \u5355\u6b21\u6700\u591a5000<br \/>\n            System.out.println(&#034;\u5355\u6b21\u6700\u591a\u53d6\u6b3e5000&#034;); \/\/ \u8d85\u9650\u63d0\u793a<br \/>\n            return; \/\/ \u7ed3\u675f&#xff0c;\u4e0d\u6263\u6b3e<br \/>\n        }<br \/>\n        if (amount &gt; balance) { \/\/ \u4f59\u989d\u4e0d\u8db3<br \/>\n            System.out.println(&#034;\u4f59\u989d\u4e0d\u8db3&#034;); \/\/ \u63d0\u793a<br \/>\n            return; \/\/ \u7ed3\u675f<br \/>\n        }<br \/>\n        balance -&#061; amount; \/\/ \u6263\u51cf\u4f59\u989d<br \/>\n        System.out.println(&#034;\u53d6\u6b3e\u6210\u529f&#034;); \/\/ \u6210\u529f\u63d0\u793a<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*<br \/>\n\u9884\u671f\u8f93\u51fa&#xff08;\u8f93\u51656000&#xff09;&#xff1a;<br \/>\n\u8bf7\u8f93\u5165\u53d6\u6b3e\u91d1\u989d&#xff1a;6000<br \/>\n\u5355\u6b21\u6700\u591a\u53d6\u6b3e5000<br \/>\n\u4f59\u989d&#xff1a;8000.0<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff08;\u8f93\u51653000&#xff09;&#xff1a;<br \/>\n\u8bf7\u8f93\u5165\u53d6\u6b3e\u91d1\u989d&#xff1a;3000<br \/>\n\u53d6\u6b3e\u6210\u529f<br \/>\n\u4f59\u989d&#xff1a;5000.0<br \/>\n*\/ <\/p>\n<hr \/>\n<h3 id=\"%E7%BB%83%E4%B9%A03%EF%BC%9A%E7%94%A8%E6%95%B0%E7%BB%84%E8%AE%B0%E5%BD%95%E6%9C%80%E8%BF%91%205%20%E7%AC%94%E6%93%8D%E4%BD%9C%E9%87%91%E9%A2%9D%EF%BC%88%E5%AD%98%E6%AC%BE%E6%AD%A3%E3%80%81%E5%8F%96%E6%AC%BE%E8%B4%9F%EF%BC%89%EF%BC%8C%E5%B9%B6%E6%8F%90%E4%BE%9B%E2%80%9C%E6%89%93%E5%8D%B0%E6%B5%81%E6%B0%B4%E2%80%9D\">\u7ec3\u4e603&#xff1a;\u7528\u6570\u7ec4\u8bb0\u5f55\u6700\u8fd1 5 \u7b14\u64cd\u4f5c\u91d1\u989d&#xff08;\u5b58\u6b3e\u6b63\u3001\u53d6\u6b3e\u8d1f&#xff09;&#xff0c;\u5e76\u63d0\u4f9b\u201c\u6253\u5370\u6d41\u6c34\u201d<\/h3>\n<p>public class Day13Ex3 { \/\/ \u516c\u5171\u7c7b<br \/>\n    static double[] records &#061; new double[5]; \/\/ \u6700\u8fd15\u7b14\u6d41\u6c34<br \/>\n    static int count &#061; 0; \/\/ \u5df2\u8bb0\u5f55\u7b14\u6570<\/p>\n<p>    public static void main(String[] args) { \/\/ \u5165\u53e3&#xff1a;\u6a21\u62df\u51e0\u7b14\u540e\u6253\u5370<br \/>\n        addRecord(200); \/\/ \u5b58\u6b3e\u8bb0&#043;200<br \/>\n        addRecord(-100); \/\/ \u53d6\u6b3e\u8bb0-100<br \/>\n        addRecord(50); \/\/ \u5b58\u6b3e\u8bb0&#043;50<br \/>\n        printRecords(); \/\/ \u6253\u5370\u6d41\u6c34<br \/>\n    }<\/p>\n<p>    public static void addRecord(double amount) { \/\/ \u8ffd\u52a0\u4e00\u7b14\u6d41\u6c34<br \/>\n        if (count &lt; records.length) { \/\/ \u8fd8\u6ca1\u6ee15\u7b14<br \/>\n            records[count] &#061; amount; \/\/ \u653e\u5230\u4e0b\u4e00\u4e2a\u7a7a\u4f4d<br \/>\n            count&#043;&#043;; \/\/ \u7b14\u6570\u52a01<br \/>\n        } else { \/\/ \u5df2\u6ee1&#xff1a;\u4e22\u6389\u6700\u65e7&#xff0c;\u6574\u4f53\u5de6\u79fb<br \/>\n            for (int i &#061; 0; i &lt; records.length &#8211; 1; i&#043;&#043;) { \/\/ \u4ece\u5de6\u5f80\u53f3\u632a<br \/>\n                records[i] &#061; records[i &#043; 1]; \/\/ \u540e\u4e00\u4e2a\u8986\u76d6\u524d\u4e00\u4e2a<br \/>\n            }<br \/>\n            records[records.length &#8211; 1] &#061; amount; \/\/ \u6700\u65b0\u4e00\u7b14\u653e\u6700\u540e<br \/>\n        }<br \/>\n    }<\/p>\n<p>    public static void printRecords() { \/\/ \u6253\u5370\u6d41\u6c34\u83dc\u5355\u529f\u80fd<br \/>\n        System.out.println(&#034;&#8212;&#8211; \u6700\u8fd1\u6d41\u6c34 &#8212;&#8211;&#034;); \/\/ \u6807\u9898<br \/>\n        for (int i &#061; 0; i &lt; count &amp;&amp; i &lt; records.length; i&#043;&#043;) { \/\/ \u53ea\u6253\u5370\u6709\u6548\u7b14\u6570<br \/>\n            System.out.println(&#034;\u7b2c&#034; &#043; (i &#043; 1) &#043; &#034;\u7b14&#xff1a;&#034; &#043; records[i]); \/\/ \u6253\u5370\u6bcf\u7b14<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*<br \/>\n\u9884\u671f\u8f93\u51fa&#xff1a;<br \/>\n&#8212;&#8211; \u6700\u8fd1\u6d41\u6c34 &#8212;&#8211;<br \/>\n\u7b2c1\u7b14&#xff1a;200.0<br \/>\n\u7b2c2\u7b14&#xff1a;-100.0<br \/>\n\u7b2c3\u7b14&#xff1a;50.0<br \/>\n*\/ <\/p>\n<hr \/>\n<h3 id=\"%E7%BB%83%E4%B9%A04%EF%BC%9A%E7%99%BB%E5%BD%95%E6%88%90%E5%8A%9F%E5%90%8E%E6%98%BE%E7%A4%BA%E9%9A%90%E8%97%8F%E8%B4%A6%E5%8F%B7%EF%BC%881001%E2%86%921**1%EF%BC%89%EF%BC%8C%E5%B9%B6%E7%BB%9F%E8%AE%A1%E7%99%BB%E5%BD%95%E5%A4%B1%E8%B4%A5%E6%80%BB%E6%AC%A1%E6%95%B0\">\u7ec3\u4e604&#xff1a;\u767b\u5f55\u6210\u529f\u540e\u663e\u793a\u9690\u85cf\u8d26\u53f7&#xff08;1001\u21921**1&#xff09;&#xff0c;\u5e76\u7edf\u8ba1\u767b\u5f55\u5931\u8d25\u603b\u6b21\u6570<\/h3>\n<p>public class Day13Ex4 { \/\/ \u516c\u5171\u7c7b<br \/>\n    static String[] ids &#061; {&#034;1001&#034;, &#034;1002&#034;}; \/\/ \u8d26\u53f7<br \/>\n    static String[] pwds &#061; {&#034;123456&#034;, &#034;234567&#034;}; \/\/ \u5bc6\u7801<br \/>\n    static int failCount &#061; 0; \/\/ \u767b\u5f55\u5931\u8d25\u603b\u6b21\u6570<\/p>\n<p>    public static void main(String[] args) { \/\/ \u5165\u53e3<br \/>\n        boolean ok1 &#061; login(&#034;1001&#034;, &#034;000000&#034;); \/\/ \u6545\u610f\u8f93\u9519<br \/>\n        System.out.println(&#034;\u7b2c1\u6b21\u767b\u5f55\u7ed3\u679c&#xff1a;&#034; &#043; ok1); \/\/ \u6253\u5370\u7ed3\u679c<br \/>\n        boolean ok2 &#061; login(&#034;1001&#034;, &#034;123456&#034;); \/\/ \u8f93\u5bf9<br \/>\n        System.out.println(&#034;\u7b2c2\u6b21\u767b\u5f55\u7ed3\u679c&#xff1a;&#034; &#043; ok2); \/\/ \u6253\u5370\u7ed3\u679c<br \/>\n        System.out.println(&#034;\u5931\u8d25\u603b\u6b21\u6570&#xff1a;&#034; &#043; failCount); \/\/ \u6253\u5370\u5931\u8d25\u7edf\u8ba1<br \/>\n    }<\/p>\n<p>    public static boolean login(String id, String pwd) { \/\/ \u767b\u5f55\u6821\u9a8c<br \/>\n        for (int i &#061; 0; i &lt; ids.length; i&#043;&#043;) { \/\/ \u904d\u5386\u7528\u6237<br \/>\n            if (ids[i].equals(id) &amp;&amp; pwds[i].equals(pwd)) { \/\/ \u8d26\u53f7\u5bc6\u7801\u90fd\u5bf9<br \/>\n                System.out.println(&#034;\u767b\u5f55\u6210\u529f&#xff0c;\u8d26\u53f7&#xff1a;&#034; &#043; hideId(ids[i])); \/\/ \u663e\u793a\u9690\u85cf\u8d26\u53f7<br \/>\n                return true; \/\/ \u8fd4\u56de\u6210\u529f<br \/>\n            }<br \/>\n        }<br \/>\n        failCount&#043;&#043;; \/\/ \u5931\u8d25\u6b21\u6570&#043;1<br \/>\n        System.out.println(&#034;\u767b\u5f55\u5931\u8d25&#034;); \/\/ \u63d0\u793a\u5931\u8d25<br \/>\n        return false; \/\/ \u8fd4\u56de\u5931\u8d25<br \/>\n    }<\/p>\n<p>    public static String hideId(String id) { \/\/ \u9690\u85cf\u4e2d\u95f4\u5b57\u7b26<br \/>\n        if (id &#061;&#061; null || id.length() &lt;&#061; 2) { \/\/ \u592a\u77ed\u4e0d\u5904\u7406<br \/>\n            return id; \/\/ \u539f\u6837\u8fd4\u56de<br \/>\n        }<br \/>\n        char first &#061; id.charAt(0); \/\/ \u9996\u5b57\u7b26<br \/>\n        char last &#061; id.charAt(id.length() &#8211; 1); \/\/ \u5c3e\u5b57\u7b26<br \/>\n        String mid &#061; &#034;&#034;; \/\/ \u4e2d\u95f4\u661f\u53f7<br \/>\n        for (int i &#061; 0; i &lt; id.length() &#8211; 2; i&#043;&#043;) { \/\/ \u4e2d\u95f4\u6709\u51e0\u4f4d\u5c31\u52a0\u51e0\u4e2a*<br \/>\n            mid &#043;&#061; &#034;*&#034;; \/\/ \u8ffd\u52a0*<br \/>\n        }<br \/>\n        return first &#043; mid &#043; last; \/\/ \u62fc\u62101**1\u5f62\u5f0f<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*<br \/>\n\u9884\u671f\u8f93\u51fa&#xff1a;<br \/>\n\u767b\u5f55\u5931\u8d25<br \/>\n\u7b2c1\u6b21\u767b\u5f55\u7ed3\u679c&#xff1a;false<br \/>\n\u767b\u5f55\u6210\u529f&#xff0c;\u8d26\u53f7&#xff1a;1**1<br \/>\n\u7b2c2\u6b21\u767b\u5f55\u7ed3\u679c&#xff1a;true<br \/>\n\u5931\u8d25\u603b\u6b21\u6570&#xff1a;1<br \/>\n*\/ <\/p>\n<hr \/>\n<h2 id=\"%E7%AC%AC%E4%BA%8C%E9%83%A8%E5%88%86%EF%BC%9ADay%2014%20%E8%AF%A6%E7%BB%86%E6%95%99%E7%A8%8B\">\u7b2c\u4e8c\u90e8\u5206&#xff1a;Day 14 \u8be6\u7ec6\u6559\u7a0b<\/h2>\n<hr \/>\n<h3 id=\"%E4%BB%8A%E6%97%A5%E7%9B%AE%E6%A0%87\">\u4eca\u65e5\u76ee\u6807<\/h3>\n<li>\u7406\u89e3\u4ec0\u4e48\u662f\u7c7b\u3001\u4ec0\u4e48\u662f\u5bf9\u8c61<\/li>\n<li>\u4f1a\u5b9a\u4e49\u5c5e\u6027&#xff08;\u6210\u5458\u53d8\u91cf&#xff09;\u548c\u884c\u4e3a&#xff08;\u6210\u5458\u65b9\u6cd5&#xff09;<\/li>\n<li>\u4f1a\u7528\u00a0new\u00a0\u521b\u5efa\u5bf9\u8c61&#xff0c;\u5e76\u7528\u00a0\u5bf9\u8c61.\u5c5e\u6027 \/ \u5bf9\u8c61.\u65b9\u6cd5()\u00a0\u8c03\u7528<\/li>\n<li>\u80fd\u628a\u6628\u5929 ATM \u7684\u201c\u5e73\u884c\u6570\u7ec4\u201d&#xff0c;\u5347\u7ea7\u6210\u201c\u4e00\u4e2a\u5bf9\u8c61\u4ee3\u8868\u4e00\u4e2a\u8d26\u6237\u201d<\/li>\n<hr \/>\n<h3 id=\"%E4%B8%80%E3%80%81%E5%85%88%E5%BB%BA%E7%AB%8B%E6%A6%82%E5%BF%B5%EF%BC%88%E4%B8%80%E7%9C%8B%E5%B0%B1%E6%87%82%EF%BC%89\">\u4e00\u3001\u5148\u5efa\u7acb\u6982\u5ff5&#xff08;\u4e00\u770b\u5c31\u61c2&#xff09;<\/h3>\n<p>\u7c7b &#061; \u56fe\u7eb8 \/ \u6a21\u5177<\/p>\n<p>\u5bf9\u8c61 &#061; \u6309\u56fe\u7eb8\u505a\u51fa\u6765\u7684\u5177\u4f53\u4e1c\u897f<\/p>\n<p>\u7c7b&#xff1a;\u624b\u673a\u56fe\u7eb8&#xff08;\u90fd\u6709\u54c1\u724c\u3001\u4ef7\u683c&#xff1b;\u90fd\u80fd\u5f00\u673a\u3001\u6253\u7535\u8bdd&#xff09;<\/p>\n<p>\u5bf9\u8c61&#xff1a;\u4f60\u7684\u7ea2\u8272\u5c0f\u7c73\u3001\u6211\u7684\u9ed1\u8272\u534e\u4e3a \u2014\u2014 \u5f7c\u6b64\u6570\u636e\u72ec\u7acb<\/p>\n<table>\n<tr>\u540d\u8bcd\u542b\u4e49\u4ee3\u7801\u5bf9\u5e94<\/tr>\n<tbody>\n<tr>\n<td>\n<p>\u7c7b Class<\/p>\n<\/td>\n<td>\n<p>\u6a21\u677f<\/p>\n<\/td>\n<td>\n<p>class Student { }<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5bf9\u8c61 Object<\/p>\n<\/td>\n<td>\n<p>\u5b9e\u4f8b<\/p>\n<\/td>\n<td>\n<p>Student s &#061; new Student();<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5c5e\u6027<\/p>\n<\/td>\n<td>\n<p>\u5bf9\u8c61\u6709\u4ec0\u4e48\u6570\u636e<\/p>\n<\/td>\n<td>\n<p>String name; int age;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u884c\u4e3a<\/p>\n<\/td>\n<td>\n<p>\u5bf9\u8c61\u80fd\u505a\u4ec0\u4e48<\/p>\n<\/td>\n<td>\n<p>void study() { }<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3 id=\"%E4%BA%8C%E3%80%81%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E4%BB%8E%E6%95%B0%E7%BB%84%E5%8D%87%E7%BA%A7%E5%88%B0%E5%AF%B9%E8%B1%A1%EF%BC%9F\">\u4e8c\u3001\u4e3a\u4ec0\u4e48\u8981\u4ece\u6570\u7ec4\u5347\u7ea7\u5230\u5bf9\u8c61&#xff1f;<\/h3>\n<p>\u6628\u5929 ATM&#xff1a;<\/p>\n<p>ids[i] \/ pwds[i] \/ moneys[i]  \u2014\u2014 \u9760\u540c\u4e00\u4e2a i \u7ed1\u5728\u4e00\u8d77&#xff0c;\u5bb9\u6613\u5bf9\u9519\u884c <\/p>\n<p>\u4eca\u5929\u5e0c\u671b&#xff1a;<\/p>\n<p>\u4e00\u4e2a Account \u5bf9\u8c61\u81ea\u5df1\u5e26\u7740&#xff1a;id\u3001pwd\u3001money <\/p>\n<p>\u597d\u5904&#xff1a;\u4e00\u4e2a\u5bf9\u8c61\u5c31\u662f\u4e00\u4e2a\u5b8c\u6574\u8d26\u6237&#xff0c;\u6570\u636e\u4e0d\u6563\u843d\u3002<\/p>\n<hr \/>\n<h3 id=\"%E4%B8%89%E3%80%81%E6%9C%80%E5%B0%8F%E4%BE%8B%E5%AD%90%EF%BC%9A%E5%AE%9A%E4%B9%89%E7%B1%BB%20%E2%86%92%20%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1%20%E2%86%92%20%E8%B0%83%E7%94%A8\">\u4e09\u3001\u6700\u5c0f\u4f8b\u5b50&#xff1a;\u5b9a\u4e49\u7c7b \u2192 \u521b\u5efa\u5bf9\u8c61 \u2192 \u8c03\u7528<\/h3>\n<h4 id=\"%E5%AD%A6%E4%B9%A0%E8%B7%AF%E5%BE%84\">\u5b66\u4e60\u8def\u5f84<\/h4>\n<li>\u5148\u5199\u00a0Student\u00a0\u7c7b&#xff08;\u6709\u4ec0\u4e48 &#043; \u80fd\u5e72\u4ec0\u4e48&#xff09;<\/li>\n<li>\u5728\u00a0main\u00a0\u91cc\u00a0new\u00a0\u51fa\u5bf9\u8c61<\/li>\n<li>\u7ed9\u5c5e\u6027\u8d4b\u503c<\/li>\n<li>\u8c03\u7528\u65b9\u6cd5<\/li>\n<p>public class StudentDemo { \/\/ \u6f14\u793a\u4e3b\u7c7b&#xff08;\u5efa\u8bae Student \u5355\u72ec\u4e00\u4e2a\u6587\u4ef6&#xff1b;\u8fd9\u91cc\u4e3a\u65b9\u4fbf\u653e\u4e00\u8d77&#xff09;<br \/>\n    public static void main(String[] args) { \/\/ \u7a0b\u5e8f\u5165\u53e3<br \/>\n        Student s1 &#061; new Student(); \/\/ \u6309Student\u6a21\u677f\u521b\u5efa\u5bf9\u8c61s1<br \/>\n        s1.name &#061; &#034;\u5f20\u4e09&#034;; \/\/ \u7ed9s1\u7684\u59d3\u540d\u8d4b\u503c<br \/>\n        s1.age &#061; 18; \/\/ \u7ed9s1\u7684\u5e74\u9f84\u8d4b\u503c<br \/>\n        s1.study(); \/\/ \u8c03\u7528s1\u7684\u5b66\u4e60\u65b9\u6cd5<br \/>\n        s1.show(); \/\/ \u8c03\u7528s1\u7684\u5c55\u793a\u65b9\u6cd5<\/p>\n<p>        Student s2 &#061; new Student(); \/\/ \u518d\u521b\u5efa\u53e6\u4e00\u4e2a\u72ec\u7acb\u5bf9\u8c61s2<br \/>\n        s2.name &#061; &#034;\u674e\u56db&#034;; \/\/ s2\u6709\u81ea\u5df1\u7684\u6570\u636e&#xff0c;\u4e0d\u5f71\u54cds1<br \/>\n        s2.age &#061; 19; \/\/ \u7ed9s2\u8d4b\u503c\u5e74\u9f84<br \/>\n        s2.show(); \/\/ \u5c55\u793as2<br \/>\n    }<br \/>\n}<\/p>\n<p>class Student { \/\/ \u5b66\u751f\u7c7b&#xff1a;\u6a21\u677f<br \/>\n    String name; \/\/ \u5c5e\u6027&#xff1a;\u59d3\u540d&#xff08;\u6bcf\u4e2a\u5bf9\u8c61\u5404\u6709\u4e00\u4efd&#xff09;<br \/>\n    int age; \/\/ \u5c5e\u6027&#xff1a;\u5e74\u9f84<\/p>\n<p>    public void study() { \/\/ \u884c\u4e3a&#xff1a;\u5b66\u4e60&#xff08;\u5bf9\u8c61\u65b9\u6cd5&#xff0c;\u5148\u4e0d\u5199static&#xff09;<br \/>\n        System.out.println(name &#043; &#034; \u6b63\u5728\u5b66\u4e60Java&#034;); \/\/ \u4f7f\u7528\u672c\u5bf9\u8c61\u7684name<br \/>\n    }<\/p>\n<p>    public void show() { \/\/ \u884c\u4e3a&#xff1a;\u5c55\u793a\u4fe1\u606f<br \/>\n        System.out.println(&#034;\u59d3\u540d&#xff1a;&#034; &#043; name &#043; &#034;&#xff0c;\u5e74\u9f84&#xff1a;&#034; &#043; age); \/\/ \u6253\u5370\u672c\u5bf9\u8c61\u5c5e\u6027<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*<br \/>\n\u9884\u671f\u8f93\u51fa&#xff1a;<br \/>\n\u5f20\u4e09 \u6b63\u5728\u5b66\u4e60Java<br \/>\n\u59d3\u540d&#xff1a;\u5f20\u4e09&#xff0c;\u5e74\u9f84&#xff1a;18<br \/>\n\u59d3\u540d&#xff1a;\u674e\u56db&#xff0c;\u5e74\u9f84&#xff1a;19<br \/>\n*\/ <\/p>\n<hr \/>\n<h3 id=\"%E5%9B%9B%E3%80%81%E9%80%90%E9%A1%B9%E7%B2%BE%E8%AE%B2\">\u56db\u3001\u9010\u9879\u7cbe\u8bb2<\/h3>\n<h4 id=\"1%EF%BC%89%E5%B1%9E%E6%80%A7%E5%86%99%E5%9C%A8%E5%93%AA%EF%BC%9F\">1&#xff09;\u5c5e\u6027\u5199\u5728\u54ea&#xff1f;<\/h4>\n<p>\u5199\u5728\u7c7b\u91cc\u3001\u65b9\u6cd5\u5916\u00a0\u2192 \u5c5e\u4e8e\u5bf9\u8c61\u3002<\/p>\n<p>class Student { \/\/ \u5b66\u751f\u7c7b<br \/>\n    String name; \/\/ \u6210\u5458\u53d8\u91cf\/\u5c5e\u6027<br \/>\n    int age; \/\/ \u6210\u5458\u53d8\u91cf\/\u5c5e\u6027<br \/>\n} <\/p>\n<p>\u9ed8\u8ba4\u503c\u8bb0\u4f4f&#xff1a;<\/p>\n<table>\n<tr>\u7c7b\u578b\u9ed8\u8ba4\u503c<\/tr>\n<tbody>\n<tr>\n<td>\n<p>int<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>double<\/p>\n<\/td>\n<td>\n<p>0.0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>boolean<\/p>\n<\/td>\n<td>\n<p>false<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>String<\/p>\n<\/td>\n<td>\n<p>null<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"2%EF%BC%89%E8%A1%8C%E4%B8%BA%E6%80%8E%E4%B9%88%E5%86%99%EF%BC%9F\">2&#xff09;\u884c\u4e3a\u600e\u4e48\u5199&#xff1f;<\/h4>\n<p>\u548c\u4ee5\u524d\u65b9\u6cd5\u5f88\u50cf&#xff0c;\u4f46\u5bf9\u8c61\u65b9\u6cd5\u901a\u5e38\u5148\u4e0d\u5199 static\u3002<\/p>\n<p>public void study() { \/\/ \u5bf9\u8c61\u65b9\u6cd5<br \/>\n    System.out.println(name &#043; &#034; \u6b63\u5728\u5b66\u4e60&#034;); \/\/ \u76f4\u63a5\u7528\u81ea\u5df1\u7684\u5c5e\u6027<br \/>\n} <\/p>\n<h4 id=\"3%EF%BC%89new%C2%A0%E5%81%9A%E4%BA%86%E4%BB%80%E4%B9%88%EF%BC%9F\">3&#xff09;new\u00a0\u505a\u4e86\u4ec0\u4e48&#xff1f;<\/h4>\n<p>Student s1 &#061; new Student();<\/p>\n<p>1. \u5728\u5806\u91cc\u521b\u5efa\u51fa\u4e00\u4e2aStudent\u5bf9\u8c61<br \/>\n2. \u5c5e\u6027\u5148\u662f\u9ed8\u8ba4\u503c<br \/>\n3. \u628a\u5bf9\u8c61\u5730\u5740\u4ea4\u7ed9\u5f15\u7528\u53d8\u91cfs1<br \/>\nStudent s1 &#061; new Student(); \/\/ s1\u662f\u201c\u9065\u63a7\u5668\u201d&#xff0c;\u6307\u5411\u771f\u6b63\u7684\u5b66\u751f\u5bf9\u8c61 <\/p>\n<h4 id=\"4%EF%BC%89%E8%B0%83%E7%94%A8%E5%9B%BA%E5%AE%9A%E5%A7%BF%E5%8A%BF\">4&#xff09;\u8c03\u7528\u56fa\u5b9a\u59ff\u52bf<\/h4>\n<p>\u5bf9\u8c61\u540d.\u5c5e\u6027 &#061; \u503c; \/\/ \u8bbf\u95ee\u5c5e\u6027<br \/>\n\u5bf9\u8c61\u540d.\u65b9\u6cd5(\u53c2\u6570); \/\/ \u8c03\u7528\u65b9\u6cd5 <\/p>\n<hr \/>\n<h3 id=\"%E4%BA%94%E3%80%81static%20%E6%96%B9%E6%B3%95%20vs%20%E5%AF%B9%E8%B1%A1%E6%96%B9%E6%B3%95\">\u4e94\u3001static \u65b9\u6cd5 vs \u5bf9\u8c61\u65b9\u6cd5<\/h3>\n<table>\n<tr>static \u65b9\u6cd5\u5bf9\u8c61\u65b9\u6cd5&#xff08;\u4eca\u5929\u91cd\u70b9&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\n<p>\u8c03\u7528<\/p>\n<\/td>\n<td>\n<p>\u7c7b\u540d.\u65b9\u6cd5()\u00a0\/ \u540c\u7c7b\u76f4\u63a5\u8c03<\/p>\n<\/td>\n<td>\n<p>\u5fc5\u987b\u5148\u6709\u5bf9\u8c61&#xff1a;\u5bf9\u8c61.\u65b9\u6cd5()<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u4f8b\u5b50<\/p>\n<\/td>\n<td>\n<p>main\u3001\u5de5\u5177\u65b9\u6cd5<\/p>\n<\/td>\n<td>\n<p>study()\u3001deposit()<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u548c\u5c5e\u6027<\/p>\n<\/td>\n<td>\n<p>\u4e0d\u65b9\u4fbf\u76f4\u63a5\u7528\u5bf9\u8c61\u5c5e\u6027<\/p>\n<\/td>\n<td>\n<p>\u76f4\u63a5\u7528\u81ea\u5df1\u7684\u5c5e\u6027<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>public class CallCompare { \/\/ \u5bf9\u6bd4\u8c03\u7528\u65b9\u5f0f<br \/>\n    public static void main(String[] args) { \/\/ static\u5165\u53e3<br \/>\n        sayHello(); \/\/ static\u65b9\u6cd5\u53ef\u76f4\u63a5\u8c03\u7528<br \/>\n        Student s &#061; new Student(); \/\/ \u5148\u521b\u5efa\u5bf9\u8c61<br \/>\n        s.name &#061; &#034;\u738b\u4e94&#034;; \/\/ \u518d\u8bbe\u5c5e\u6027<br \/>\n        s.study(); \/\/ \u518d\u8c03\u5bf9\u8c61\u65b9\u6cd5<br \/>\n    }<\/p>\n<p>    public static void sayHello() { \/\/ static\u5de5\u5177\u65b9\u6cd5<br \/>\n        System.out.println(&#034;hello&#034;); \/\/ \u6253\u5370<br \/>\n    }<br \/>\n}<\/p>\n<p>class Student { \/\/ \u5b66\u751f\u7c7b<br \/>\n    String name; \/\/ \u5c5e\u6027<br \/>\n    public void study() { \/\/ \u5bf9\u8c61\u65b9\u6cd5<br \/>\n        System.out.println(name &#043; &#034; \u5b66\u4e60\u4e2d&#034;); \/\/ \u7528\u5bf9\u8c61\u81ea\u5df1\u7684name<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*<br \/>\n\u9884\u671f\u8f93\u51fa&#xff1a;<br \/>\nhello<br \/>\n\u738b\u4e94 \u5b66\u4e60\u4e2d<br \/>\n*\/ <\/p>\n<hr \/>\n<h3 id=\"%E5%85%AD%E3%80%81%E7%BB%BC%E5%90%88%E6%A1%88%E4%BE%8B%EF%BC%9AAccount%20%E8%B4%A6%E6%88%B7%E7%B1%BB%EF%BC%88%E6%89%BF%E6%8E%A5%20ATM%EF%BC%89\">\u516d\u3001\u7efc\u5408\u6848\u4f8b&#xff1a;Account \u8d26\u6237\u7c7b&#xff08;\u627f\u63a5 ATM&#xff09;<\/h3>\n<p>public class AccountDemo { \/\/ \u6f14\u793a\u4e3b\u7c7b<br \/>\n    public static void main(String[] args) { \/\/ \u5165\u53e3<br \/>\n        Account a1 &#061; new Account(); \/\/ \u521b\u5efa\u8d26\u62371<br \/>\n        a1.id &#061; &#034;1001&#034;; \/\/ \u8bbe\u7f6e\u8d26\u53f7<br \/>\n        a1.pwd &#061; &#034;123456&#034;; \/\/ \u8bbe\u7f6e\u5bc6\u7801<br \/>\n        a1.money &#061; 1000.0; \/\/ \u8bbe\u7f6e\u4f59\u989d<\/p>\n<p>        Account a2 &#061; new Account(); \/\/ \u521b\u5efa\u8d26\u62372&#xff08;\u4e0ea1\u6570\u636e\u72ec\u7acb&#xff09;<br \/>\n        a2.id &#061; &#034;1002&#034;; \/\/ \u8d26\u53f7<br \/>\n        a2.pwd &#061; &#034;234567&#034;; \/\/ \u5bc6\u7801<br \/>\n        a2.money &#061; 2000.0; \/\/ \u4f59\u989d<\/p>\n<p>        a1.show(); \/\/ \u67e5\u770ba1<br \/>\n        a1.deposit(300); \/\/ a1\u5b58\u6b3e300<br \/>\n        a1.withdraw(100); \/\/ a1\u53d6\u6b3e100<br \/>\n        a1.show(); \/\/ \u518d\u67e5\u770ba1<\/p>\n<p>        boolean ok &#061; a1.login(&#034;1001&#034;, &#034;123456&#034;); \/\/ \u7528a1\u6821\u9a8c\u767b\u5f55<br \/>\n        System.out.println(&#034;\u767b\u5f55\u7ed3\u679c&#xff1a;&#034; &#043; ok); \/\/ \u6253\u5370\u7ed3\u679c<br \/>\n        a2.show(); \/\/ a2\u4f59\u989d\u4ecd\u662f2000&#xff0c;\u8bc1\u660e\u5bf9\u8c61\u4e92\u76f8\u72ec\u7acb<br \/>\n    }<br \/>\n}<\/p>\n<p>class Account { \/\/ \u8d26\u6237\u7c7b&#xff1a;\u5c5e\u6027&#043;\u884c\u4e3a\u6253\u5305<br \/>\n    String id; \/\/ \u5c5e\u6027&#xff1a;\u8d26\u53f7<br \/>\n    String pwd; \/\/ \u5c5e\u6027&#xff1a;\u5bc6\u7801<br \/>\n    double money; \/\/ \u5c5e\u6027&#xff1a;\u4f59\u989d<\/p>\n<p>    public void show() { \/\/ \u663e\u793a\u8d26\u6237\u4fe1\u606f<br \/>\n        System.out.println(&#034;\u8d26\u53f7&#xff1a;&#034; &#043; id &#043; &#034;&#xff0c;\u4f59\u989d&#xff1a;&#034; &#043; money); \/\/ \u6253\u5370\u672c\u5bf9\u8c61\u6570\u636e<br \/>\n    }<\/p>\n<p>    public void deposit(double amount) { \/\/ \u5b58\u6b3e<br \/>\n        if (amount &lt;&#061; 0) { \/\/ \u6821\u9a8c\u91d1\u989d<br \/>\n            System.out.println(&#034;\u91d1\u989d\u5fc5\u987b\u5927\u4e8e0&#034;); \/\/ \u63d0\u793a<br \/>\n            return; \/\/ \u7ed3\u675f<br \/>\n        }<br \/>\n        money &#043;&#061; amount; \/\/ \u672c\u5bf9\u8c61\u4f59\u989d\u589e\u52a0<br \/>\n        System.out.println(id &#043; &#034; \u5b58\u6b3e\u6210\u529f&#xff0c;\u4f59\u989d&#xff1a;&#034; &#043; money); \/\/ \u6210\u529f\u63d0\u793a<br \/>\n    }<\/p>\n<p>    public void withdraw(double amount) { \/\/ \u53d6\u6b3e<br \/>\n        if (amount &lt;&#061; 0) { \/\/ \u91d1\u989d\u6821\u9a8c<br \/>\n            System.out.println(&#034;\u91d1\u989d\u5fc5\u987b\u5927\u4e8e0&#034;); \/\/ \u63d0\u793a<br \/>\n            return; \/\/ \u7ed3\u675f<br \/>\n        }<br \/>\n        if (amount &gt; money) { \/\/ \u4f59\u989d\u6821\u9a8c<br \/>\n            System.out.println(&#034;\u4f59\u989d\u4e0d\u8db3&#034;); \/\/ \u63d0\u793a<br \/>\n            return; \/\/ \u7ed3\u675f<br \/>\n        }<br \/>\n        money -&#061; amount; \/\/ \u672c\u5bf9\u8c61\u4f59\u989d\u51cf\u5c11<br \/>\n        System.out.println(id &#043; &#034; \u53d6\u6b3e\u6210\u529f&#xff0c;\u4f59\u989d&#xff1a;&#034; &#043; money); \/\/ \u6210\u529f\u63d0\u793a<br \/>\n    }<\/p>\n<p>    public boolean login(String inputId, String inputPwd) { \/\/ \u767b\u5f55\u6821\u9a8c<br \/>\n        return id.equals(inputId) &amp;&amp; pwd.equals(inputPwd); \/\/ \u5185\u5bb9\u76f8\u7b49\u8fd4\u56detrue<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*<br \/>\n\u9884\u671f\u8f93\u51fa&#xff1a;<br \/>\n\u8d26\u53f7&#xff1a;1001&#xff0c;\u4f59\u989d&#xff1a;1000.0<br \/>\n1001 \u5b58\u6b3e\u6210\u529f&#xff0c;\u4f59\u989d&#xff1a;1300.0<br \/>\n1001 \u53d6\u6b3e\u6210\u529f&#xff0c;\u4f59\u989d&#xff1a;1200.0<br \/>\n\u8d26\u53f7&#xff1a;1001&#xff0c;\u4f59\u989d&#xff1a;1200.0<br \/>\n\u767b\u5f55\u7ed3\u679c&#xff1a;true<br \/>\n\u8d26\u53f7&#xff1a;1002&#xff0c;\u4f59\u989d&#xff1a;2000.0<br \/>\n*\/ <\/p>\n<hr \/>\n<h3 id=\"%E4%B8%83%E3%80%81%E5%AF%B9%E8%B1%A1%E6%95%B0%E7%BB%84%EF%BC%88%E4%B8%BA%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E6%89%93%E5%9F%BA%E7%A1%80%EF%BC%89\">\u4e03\u3001\u5bf9\u8c61\u6570\u7ec4&#xff08;\u4e3a\u7ba1\u7406\u7cfb\u7edf\u6253\u57fa\u7840&#xff09;<\/h3>\n<p>\u6ce8\u610f&#xff1a;new Account[3]\u00a0\u53ea\u662f\u521b\u5efa\u4e86 3 \u4e2a\u201c\u683c\u5b50\u201d&#xff0c;\u683c\u5b50\u91cc\u5148\u662f\u00a0null&#xff0c;\u8fd8\u8981\u518d\u00a0new Account()\u00a0\u653e\u8fdb\u53bb\u3002<\/p>\n<p>public class AccountArrayDemo { \/\/ \u5bf9\u8c61\u6570\u7ec4\u6f14\u793a<br \/>\n    public static void main(String[] args) { \/\/ \u5165\u53e3<br \/>\n        Account[] arr &#061; new Account[3]; \/\/ \u957f\u5ea6\u4e3a3\u7684\u8d26\u6237\u6570\u7ec4&#xff0c;\u5143\u7d20\u9ed8\u8ba4null<\/p>\n<p>        arr[0] &#061; new Account(); \/\/ \u7b2c0\u683c\u653e\u5165\u8d26\u6237\u5bf9\u8c61<br \/>\n        arr[0].id &#061; &#034;1001&#034;; \/\/ \u8bbe\u7f6e\u8d26\u53f7<br \/>\n        arr[0].pwd &#061; &#034;123456&#034;; \/\/ \u8bbe\u7f6e\u5bc6\u7801<br \/>\n        arr[0].money &#061; 1000; \/\/ \u8bbe\u7f6e\u4f59\u989d<\/p>\n<p>        arr[1] &#061; new Account(); \/\/ \u7b2c1\u683c\u518d\u653e\u4e00\u4e2a\u8d26\u6237<br \/>\n        arr[1].id &#061; &#034;1002&#034;; \/\/ \u8d26\u53f7<br \/>\n        arr[1].pwd &#061; &#034;234567&#034;; \/\/ \u5bc6\u7801<br \/>\n        arr[1].money &#061; 2000; \/\/ \u4f59\u989d<\/p>\n<p>        for (int i &#061; 0; i &lt; arr.length; i&#043;&#043;) { \/\/ \u904d\u5386\u6570\u7ec4<br \/>\n            if (arr[i] !&#061; null) { \/\/ \u7a7a\u683c\u5b50\u4e0d\u80fd\u8c03\u7528&#xff0c;\u5426\u5219\u7a7a\u6307\u9488<br \/>\n                arr[i].show(); \/\/ \u8c03\u7528\u6bcf\u4e2a\u5bf9\u8c61\u81ea\u5df1\u7684show<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>class Account { \/\/ \u8d26\u6237\u7c7b<br \/>\n    String id; \/\/ \u8d26\u53f7<br \/>\n    String pwd; \/\/ \u5bc6\u7801<br \/>\n    double money; \/\/ \u4f59\u989d<\/p>\n<p>    public void show() { \/\/ \u663e\u793a<br \/>\n        System.out.println(&#034;\u8d26\u53f7&#xff1a;&#034; &#043; id &#043; &#034;&#xff0c;\u4f59\u989d&#xff1a;&#034; &#043; money); \/\/ \u6253\u5370<br \/>\n    }<br \/>\n}<\/p>\n<p>\/*<br \/>\n\u9884\u671f\u8f93\u51fa&#xff1a;<br \/>\n\u8d26\u53f7&#xff1a;1001&#xff0c;\u4f59\u989d&#xff1a;1000.0<br \/>\n\u8d26\u53f7&#xff1a;1002&#xff0c;\u4f59\u989d&#xff1a;2000.0<br \/>\n*\/ <\/p>\n<hr \/>\n<h3 id=\"%E5%85%AB%E3%80%81%E5%BB%BA%E8%AE%AE%E4%BD%A0%E8%BF%99%E6%A0%B7%E7%BB%83\">\u516b\u3001\u5efa\u8bae\u4f60\u8fd9\u6837\u7ec3<\/h3>\n<li>\u5148\u5199\u53ea\u542b\u5c5e\u6027\u7684\u00a0Student&#xff0c;main\u00a0\u91cc\u8d4b\u503c\u5e76\u6253\u5370<\/li>\n<li>\u518d\u7ed9\u00a0Student\u00a0\u52a0\u00a0show()\u00a0\/\u00a0study()<\/li>\n<li>\u5199\u00a0Account\u00a0\u7684\u00a0deposit\u00a0\/\u00a0withdraw<\/li>\n<li>\u6700\u540e\u505a\u00a0Account[]\u00a0\u904d\u5386<\/li>\n<hr \/>\n<h3 id=\"%E4%B9%9D%E3%80%81%E8%BF%98%E6%9C%89%E6%B2%A1%E6%9C%89%E5%88%AB%E7%9A%84%E5%86%99%E6%B3%95%EF%BC%9F\">\u4e5d\u3001\u8fd8\u6709\u6ca1\u6709\u522b\u7684\u5199\u6cd5&#xff1f;<\/h3>\n<p>\u5199\u6cd5 A&#xff1a;\u521b\u5efa\u540e\u96c6\u4e2d\u521d\u59cb\u5316<\/p>\n<p>Student s &#061; new Student(); \/\/ \u5148new\u5bf9\u8c61<br \/>\ns.name &#061; &#034;\u5f20\u4e09&#034;; \/\/ \u518d\u8d4b\u59d3\u540d<br \/>\ns.age &#061; 18; \/\/ \u518d\u8d4b\u5e74\u9f84<br \/>\ns.show(); \/\/ \u6700\u540e\u8c03\u7528\u65b9\u6cd5 <\/p>\n<p>\u5199\u6cd5 B&#xff1a;\u5c55\u793a\u4fe1\u606f\u5199\u8be6\u7ec6\u4e00\u70b9<\/p>\n<p>public void show() { \/\/ \u5c55\u793a\u65b9\u6cd5<br \/>\n    System.out.println(&#034;&#8212;&#8211; \u5b66\u751f\u4fe1\u606f &#8212;&#8211;&#034;); \/\/ \u6807\u9898<br \/>\n    System.out.println(&#034;\u59d3\u540d&#xff1a;&#034; &#043; name); \/\/ \u59d3\u540d<br \/>\n    System.out.println(&#034;\u5e74\u9f84&#xff1a;&#034; &#043; age); \/\/ \u5e74\u9f84<br \/>\n} <\/p>\n<p>\u5199\u6cd5 C&#xff1a;\u9884\u544a\u5c01\u88c5&#xff08;Day15&#xff09;&#xff1a;\u5c5e\u6027\u5148 private&#xff0c;\u7528\u65b9\u6cd5\u8bfb\u5199<\/p>\n<p>class Student { \/\/ \u5b66\u751f\u7c7b<br \/>\n    private String name; \/\/ private&#xff1a;\u5916\u90e8\u4e0d\u80fd\u76f4\u63a5s.name\u4e71\u6539<\/p>\n<p>    public void setName(String n) { \/\/ \u95f4\u63a5\u8d4b\u503c<br \/>\n        name &#061; n; \/\/ \u628a\u53c2\u6570\u8d4b\u7ed9\u5c5e\u6027<br \/>\n    }<\/p>\n<p>    public String getName() { \/\/ \u95f4\u63a5\u53d6\u503c<br \/>\n        return name; \/\/ \u8fd4\u56de\u5c5e\u6027<br \/>\n    }<br \/>\n} <\/p>\n<hr \/>\n<h3 id=\"%E5%8D%81%E3%80%81%E5%9B%BA%E5%AE%9A%E5%86%99%E6%B3%95\">\u5341\u3001\u56fa\u5b9a\u5199\u6cd5<\/h3>\n<p>class \u7c7b\u540d {<br \/>\n    \/\/ \u5c5e\u6027<br \/>\n    \/\/ \u65b9\u6cd5<br \/>\n}<br \/>\n\/\/ \u7c7b\u662f\u6a21\u677f&#xff1a;\u5148\u63cf\u8ff0\u201c\u6709\u4ec0\u4e48\u3001\u80fd\u505a\u4ec0\u4e48\u201d<\/p>\n<p>\u7c7b\u578b \u5bf9\u8c61\u540d &#061; new \u7c7b\u578b();<br \/>\n\/\/ new&#xff1a;\u5728\u5806\u4e2d\u521b\u5efa\u5bf9\u8c61<br \/>\n\/\/ \u5bf9\u8c61\u540d&#xff1a;\u4fdd\u5b58\u5bf9\u8c61\u5730\u5740\u7684\u5f15\u7528<\/p>\n<p>\u5bf9\u8c61\u540d.\u5c5e\u6027 &#061; \u503c;<br \/>\n\/\/ \u901a\u8fc7\u5f15\u7528\u8bbf\u95ee\u5e76\u8bbe\u7f6e\u5c5e\u6027<\/p>\n<p>\u5bf9\u8c61\u540d.\u65b9\u6cd5(\u53c2\u6570);<br \/>\n\/\/ \u901a\u8fc7\u5f15\u7528\u8c03\u7528\u5bf9\u8c61\u65b9\u6cd5<\/p>\n<p>public void \u65b9\u6cd5\u540d() { &#8230; }<br \/>\n\/\/ \u5bf9\u8c61\u65b9\u6cd5\u901a\u5e38\u5148\u4e0d\u5199static<br \/>\n\/\/ \u8c03\u7528\u524d\u5fc5\u987b\u5148\u6709\u5bf9\u8c61<\/p>\n<p>String name; int age;<br \/>\n\/\/ \u5c5e\u6027\u5199\u5728\u7c7b\u4e2d\u3001\u65b9\u6cd5\u5916<br \/>\n\/\/ \u6bcf\u4e2a\u5bf9\u8c61\u5404\u6709\u4e00\u4efd\u72ec\u7acb\u6570\u636e<\/p>\n<p>Account[] arr &#061; new Account[3];<br \/>\narr[0] &#061; new Account();<br \/>\n\/\/ \u5bf9\u8c61\u6570\u7ec4\u8981\u4e24\u6b65&#xff1a;\u5148\u5f00\u683c\u5b50&#xff0c;\u518d\u5f80\u6bcf\u4e2a\u683c\u5b50new\u5bf9\u8c61<\/p>\n<p>if (arr[i] !&#061; null) { arr[i].show(); }<br \/>\n\/\/ \u8c03\u7528\u524d\u5224\u65ad\u975enull&#xff0c;\u907f\u514d\u7a7a\u6307\u9488\u5f02\u5e38 <\/p>\n<hr \/>\n<h3 id=\"%E4%BB%8A%E6%97%A5%E5%BF%85%E4%BC%9A\">\u4eca\u65e5\u5fc5\u4f1a<\/h3>\n<ul>\n<li>\u00a0\u80fd\u8bf4\u51fa\u7c7b\u548c\u5bf9\u8c61\u7684\u533a\u522b<\/li>\n<li>\u00a0\u4f1a\u5b9a\u4e49\u5c5e\u6027\u548c\u6210\u5458\u65b9\u6cd5<\/li>\n<li>\u00a0\u4f1a\u00a0new\u00a0\u521b\u5efa\u5bf9\u8c61\u5e76\u8d4b\u503c<\/li>\n<li>\u00a0\u4f1a\u00a0\u5bf9\u8c61.\u65b9\u6cd5()\u00a0\u8c03\u7528<\/li>\n<li>\u00a0\u80fd\u5199\u7b80\u5355\u00a0Account&#xff08;show\/deposit\/withdraw&#xff09;<\/li>\n<li>\u00a0\u77e5\u9053\u5bf9\u8c61\u6570\u7ec4\u8981\u7ed9\u6bcf\u4e2a\u5143\u7d20\u518d\u00a0new\n<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h2 id=\"%E7%AC%AC%E4%B8%89%E9%83%A8%E5%88%86%EF%BC%9ADay%2014%20%E8%AF%BE%E5%90%8E%E7%BB%83%E4%B9%A0\">\u7b2c\u4e09\u90e8\u5206&#xff1a;Day 14 \u8bfe\u540e\u7ec3\u4e60<\/h2>\n<p>\u7ec3\u4e601&#xff1a;\u5b9a\u4e49\u00a0Phone\u00a0\u7c7b&#xff0c;\u5c5e\u6027 brand\u3001price&#xff1b;\u65b9\u6cd5\u00a0call()\u3001show()&#xff1b;\u5728 main \u91cc\u521b\u5efa\u4e24\u4e2a\u624b\u673a\u5bf9\u8c61\u5e76\u8c03\u7528<\/p>\n<p>\u7ec3\u4e602&#xff1a;\u5b9a\u4e49\u00a0Book\u00a0\u7c7b&#xff08;\u4e66\u540d\u3001\u4f5c\u8005\u3001\u4ef7\u683c&#xff09;&#xff0c;\u521b\u5efa\u5bf9\u8c61\u6570\u7ec4\u5b58\u653e 3 \u672c\u4e66\u5e76\u904d\u5386\u6253\u5370<\/p>\n<p>\u7ec3\u4e603&#xff1a;\u628a ATM \u7684\u201c\u5f53\u524d\u7528\u6237\u201d\u6539\u6210\u00a0Account\u00a0\u5bf9\u8c61&#xff1a;\u81f3\u5c11\u5b9e\u73b0 query\/deposit\/withdraw<\/p>\n<p>\u7ec3\u4e604&#xff08;\u6311\u6218&#xff09;&#xff1a;\u5199\u00a0Account[]\u00a0\u652f\u6301\u767b\u5f55&#xff1a;\u8f93\u5165\u8d26\u53f7\u5bc6\u7801&#xff0c;\u627e\u5230\u5bf9\u5e94\u5bf9\u8c61\u540e\u5bf9\u5176\u64cd\u4f5c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u7b2c\u4e00\u90e8\u5206&#xff1a;Day 13 \u7ec3\u4e60\u7b54\u6848<br \/>\n\u7ec3\u4e601&#xff1a;\u7ed9 ATM \u589e\u52a0\u201c\u4fee\u6539\u5bc6\u7801\u201d\u529f\u80fd&#xff08;\u83dc\u5355\u7b2c6\u9879&#xff09;<br \/>\n\u7ec3\u4e602&#xff1a;\u53d6\u6b3e\u65f6\u589e\u52a0\u9650\u5236&#xff1a;\u5355\u6b21\u6700\u591a\u53d6 5000<br \/>\n\u7ec3\u4e603&#xff1a;\u7528\u6570\u7ec4\u8bb0\u5f55\u6700\u8fd1 5 \u7b14\u64cd\u4f5c\u91d1\u989d&#xff08;\u5b58\u6b3e\u6b63\u3001\u53d6\u6b3e\u8d1f&#xff09;&#xff0c;\u5e76\u63d0\u4f9b\u201c\u6253\u5370\u6d41\u6c34\u201d<br \/>\n\u7ec3\u4e604&#xff1a;\u767b\u5f55\u6210\u529f\u540e\u663e\u793a\u9690\u85cf\u8d26\u53f7&#xff08;1001\u21921**1&#xff09;&#xff0c;\u5e76<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11824,11825,11823,99,190],"topic":[],"class_list":["post-103892","post","type-post","status-publish","format-standard","hentry","category-server","tag-java---","tag-java-","tag-java","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Day 14\uff1aJava\u7c7b\u4e0e\u5bf9\u8c61 \u00b7 \u5c5e\u6027 \u00b7 \u884c\u4e3a \u00b7 \u521b\u5efa\u5bf9\u8c61 \u00b7 \u5bf9\u8c61\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/103892.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 14\uff1aJava\u7c7b\u4e0e\u5bf9\u8c61 \u00b7 \u5c5e\u6027 \u00b7 \u884c\u4e3a \u00b7 \u521b\u5efa\u5bf9\u8c61 \u00b7 \u5bf9\u8c61\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 \u7b2c\u4e00\u90e8\u5206&#xff1a;Day 13 \u7ec3\u4e60\u7b54\u6848 \u7ec3\u4e601&#xff1a;\u7ed9 ATM \u589e\u52a0\u201c\u4fee\u6539\u5bc6\u7801\u201d\u529f\u80fd&#xff08;\u83dc\u5355\u7b2c6\u9879&#xff09; \u7ec3\u4e602&#xff1a;\u53d6\u6b3e\u65f6\u589e\u52a0\u9650\u5236&#xff1a;\u5355\u6b21\u6700\u591a\u53d6 5000 \u7ec3\u4e603&#xff1a;\u7528\u6570\u7ec4\u8bb0\u5f55\u6700\u8fd1 5 \u7b14\u64cd\u4f5c\u91d1\u989d&#xff08;\u5b58\u6b3e\u6b63\u3001\u53d6\u6b3e\u8d1f&#xff09;&#xff0c;\u5e76\u63d0\u4f9b\u201c\u6253\u5370\u6d41\u6c34\u201d \u7ec3\u4e604&#xff1a;\u767b\u5f55\u6210\u529f\u540e\u663e\u793a\u9690\u85cf\u8d26\u53f7&#xff08;1001\u21921**1&#xff09;&#xff0c;\u5e76\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/103892.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-11T06:09:01+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103892.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/103892.html\",\"name\":\"Day 14\uff1aJava\u7c7b\u4e0e\u5bf9\u8c61 \u00b7 \u5c5e\u6027 \u00b7 \u884c\u4e3a \u00b7 \u521b\u5efa\u5bf9\u8c61 \u00b7 \u5bf9\u8c61\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-11T06:09:01+00:00\",\"dateModified\":\"2026-09-11T06:09:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/103892.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/103892.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103892.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Day 14\uff1aJava\u7c7b\u4e0e\u5bf9\u8c61 \u00b7 \u5c5e\u6027 \u00b7 \u884c\u4e3a \u00b7 \u521b\u5efa\u5bf9\u8c61 \u00b7 \u5bf9\u8c61\u8c03\u7528\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Day 14\uff1aJava\u7c7b\u4e0e\u5bf9\u8c61 \u00b7 \u5c5e\u6027 \u00b7 \u884c\u4e3a \u00b7 \u521b\u5efa\u5bf9\u8c61 \u00b7 \u5bf9\u8c61\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/103892.html","og_locale":"zh_CN","og_type":"article","og_title":"Day 14\uff1aJava\u7c7b\u4e0e\u5bf9\u8c61 \u00b7 \u5c5e\u6027 \u00b7 \u884c\u4e3a \u00b7 \u521b\u5efa\u5bf9\u8c61 \u00b7 \u5bf9\u8c61\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55 \u7b2c\u4e00\u90e8\u5206&#xff1a;Day 13 \u7ec3\u4e60\u7b54\u6848 \u7ec3\u4e601&#xff1a;\u7ed9 ATM \u589e\u52a0\u201c\u4fee\u6539\u5bc6\u7801\u201d\u529f\u80fd&#xff08;\u83dc\u5355\u7b2c6\u9879&#xff09; \u7ec3\u4e602&#xff1a;\u53d6\u6b3e\u65f6\u589e\u52a0\u9650\u5236&#xff1a;\u5355\u6b21\u6700\u591a\u53d6 5000 \u7ec3\u4e603&#xff1a;\u7528\u6570\u7ec4\u8bb0\u5f55\u6700\u8fd1 5 \u7b14\u64cd\u4f5c\u91d1\u989d&#xff08;\u5b58\u6b3e\u6b63\u3001\u53d6\u6b3e\u8d1f&#xff09;&#xff0c;\u5e76\u63d0\u4f9b\u201c\u6253\u5370\u6d41\u6c34\u201d \u7ec3\u4e604&#xff1a;\u767b\u5f55\u6210\u529f\u540e\u663e\u793a\u9690\u85cf\u8d26\u53f7&#xff08;1001\u21921**1&#xff09;&#xff0c;\u5e76","og_url":"https:\/\/www.wsisp.com\/helps\/103892.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-11T06:09:01+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/103892.html","url":"https:\/\/www.wsisp.com\/helps\/103892.html","name":"Day 14\uff1aJava\u7c7b\u4e0e\u5bf9\u8c61 \u00b7 \u5c5e\u6027 \u00b7 \u884c\u4e3a \u00b7 \u521b\u5efa\u5bf9\u8c61 \u00b7 \u5bf9\u8c61\u8c03\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-11T06:09:01+00:00","dateModified":"2026-09-11T06:09:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/103892.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/103892.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/103892.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Day 14\uff1aJava\u7c7b\u4e0e\u5bf9\u8c61 \u00b7 \u5c5e\u6027 \u00b7 \u884c\u4e3a \u00b7 \u521b\u5efa\u5bf9\u8c61 \u00b7 \u5bf9\u8c61\u8c03\u7528"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=103892"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103892\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=103892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=103892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=103892"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=103892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}