{"id":75,"date":"2025-03-28T00:00:14","date_gmt":"2025-03-27T16:00:14","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/"},"modified":"2025-03-28T00:00:14","modified_gmt":"2025-03-27T16:00:14","slug":"java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/","title":{"rendered":"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"htmledit_views\" id=\"content_views\">\n<p id=\"main-toc\">\n   \u76ee\u6807\uff1a\u6218\u6597\u7cfb\u7edf\u5b8c\u5584\uff0c\u53ea\u9700\u5f55\u5165\u6218\u6597\u7684\u4fe9\u4e2a\u89d2\u8272\u5373\u53ef\u5f00\u59cb\u6218\u6597\uff1a\n  <\/p>\n<ul>\n<li>\n    1.\u5bf9\u6218\u65f6\u8840\u91cf\u6e05\u96f6\u6218\u6597\u7ed3\u675f\uff0c\u516c\u5e03\u83b7\u80dc\u89d2\u8272\u3002\n   <\/li>\n<li>\n    2.\u89d2\u8272\u4e3a\u5355\u72ec\u6a21\u677f\uff0c\u6709\u81ea\u5df1\u7684\u6280\u80fd\uff0c\u4e0e\u6280\u80fd\u6d88\u8017\u3002\u6709\u81ea\u5df1\u7684\u5c5e\u6027\n   <\/li>\n<li>\n    3.\u6218\u6597\u7cfb\u7edf\u53ea\u9700\u5f55\u5165\u53cc\u65b9\u89d2\u8272\u5373\u53ef\n   <\/li>\n<li>\n    4.\u73a9\u5bb6\u5bf9\u6218\u65f6\uff0c\u5982\u679c\u84dd\u91cf\u4e0d\u8db3\uff0c\u7cfb\u7edf\u81ea\u52a8\u8f6c\u6362\u4e3a\u666e\u901a\u653b\u51fb\n   <\/li>\n<\/ul>\n<h4 id=\"%E4%B8%80.%E8%A7%92%E8%89%B2%E9%80%9A%E7%94%A8%E6%A8%A1%E6%9D%BF%E8%AE%BE%E8%AE%A1\">\n   \u4e00.\u89d2\u8272\u901a\u7528\u6a21\u677f\u8bbe\u8ba1<br \/>\n  <\/h4>\n<p>\n   \u7236\u7c7b\uff1a\u5c5e\u6027\u4e3a\uff1a\u89d2\u8272\u59d3\u540d\uff0c\u8840\u91cf\u4e0e\u84dd\u91cf\u3002\u8bbe\u7acb\u653b\u51fb\u62bd\u8c61\u65b9\u6cd5\u4e0e\u6280\u80fd\u62bd\u8c61\u65b9\u6cd5\u3002\n  <\/p>\n<pre><code class=\"language-java\">\n\n\/**\n * @Title: FightingGame\n * @Author itmei\n * @Package com.mumu.dome712\n * @Date 2024\/7\/12 15:43\n * @description: \u683c\u6597\u6e38\u620f\u91cc\u7684\u4eba\u7269\u7c7b \n *\/\npublic abstract class Role {\n    \/\/\u6e38\u620f\u4eba\u7269\u540d\n    private String name;\n    \/\/\u8840\u91cf\n    private int hp = 100;\n    \/\/\u84dd\u6761\n    private int blueDose =100;\n\n    public int getBlueDose() {\n        return blueDose;\n    }\n\n    public void setBlueDose(int blueDose) {\n        this.blueDose = blueDose;\n    }\n\n    public Role(String name, int hp, int blueDose) {\n        this.name = name;\n        this.hp = hp;\n        this.blueDose = blueDose;\n    }\n\n    public String getName() {\n        return name;\n    }\n\n    public void setName(String name) {\n        this.name = name;\n    }\n\n    public int getHp() {\n        return hp;\n    }\n\n    public void setHp(int hp) {\n        this.hp = hp;\n    }\n\n    public abstract int attack(int nmb);\n\n    public abstract int skill(int hp,int a);\n}\n<\/code><\/pre>\n<h5 id=\"1.%E4%B9%94%E5%B3%B0%C2%A0%E8%A7%92%E8%89%B2%E8%AE%BE%E8%AE%A1\">\n   1.\u4e54\u5cf0\u00a0\u89d2\u8272\u8bbe\u8ba1<br \/>\n  <\/h5>\n<p>\n   \u7ee7\u627f\u89d2\u8272\u6a21\u677f\uff0c\u8bbe\u7f6e\u81ea\u5df1\u7684\u653b\u51fb\u5c5e\u6027\uff0c\u91cd\u5199\u7236\u7c7b\u653b\u51fb\u65b9\u6cd5\uff0c\u4e0e\u6280\u80fd\u65b9\u6cd5\u3002\n  <\/p>\n<p>\n   \u7531\u4e8e\u6e38\u620f\u6709\u51e0\u7387\u66b4\u51fb\uff0c\u6240\u4ee5\u8bbe\u7f6e\u4e86\u666e\u901a\u653b\u51fb\u80fd\u4ea7\u751f\u66b4\u51fb\uff0c\u4ea7\u751f\u66b4\u51fb\u7684\u65b9\u5f0f\u53ef\u4ee5\u901a\u8fc7\u968f\u673a\u6570\u7684\u653e\u5165\u968f\u673a\u4ea7\u751f\u66b4\u51fb\u3002\n  <\/p>\n<p>\n   \u901a\u8fc7\u4f20\u5165\u84dd\u91cf\u4ece\u800c\u53ef\u4ee5\u4f7f\u7528\u6280\u80fd\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u3001\n  <\/p>\n<pre><code class=\"language-java\">\n\/**\n * @Title: QiaoFeng\n * @Author itmei\n * @Package com.mumu.dome712.zuoye1\n * @Date 2024\/7\/12 15:52\n * @description: \u6e38\u620f\u4eba\u7269\u4e4b\u4e00\u4e54\u5cf0\n *\/\npublic class QiaoFeng extends Role {\n    int  atk =6;\n\n    public QiaoFeng(String name, int hp, int blueDose) {\n        super(name, hp, blueDose);\n    }\n\n    \/**\n     *\n     * @param maht \u968f\u673a\u6570\u653e\u5165,\u5982\u679c\u662f1\u5219\u53ef\u4ee5\u66b4\u51fb\n     * @return\n     *\/\n    @Override\n    public int attack(int maht) {\n        int atk1 = this.atk;\n        if (maht==1){\n            System.out.println(\"\u4e54\u5cf0\u5f00\u59cb\u653b\u51fb\u4e86\");\n            System.out.println(\"\u4e54\u5cf0\u653b\u51fb\u51fa\u73b0\u4e86\u66b4\u51fb\uff0c\u7ed9\u4e88\u5bf9\u624b\u9020\u6210\u4e86\"+atk1*2+\"\u70b9\u4f24\u5bb3\u3002\");\n            return (atk1*2);\n        }else {\n            System.out.println(\"\u4e54\u5cf0\u5f00\u59cb\u653b\u51fb\u4e86,\u7ed9\u4e88\u5bf9\u624b\u9020\u6210\u4e86\"+atk1+\"\u70b9\u4f24\u5bb3\u3002\");\n            return atk1;\n        }\n    }\n\n    @Override\n    public int skill(int mp,int a) {\n        int atk1=this.atk;\n        System.out.println(\"\u4e54\u5cf0\u6d88\u8017\u4e8650\u70b9\u5185\u529b\u3002\u4f7f\u7528\u4e86\u81ea\u5df1\u7684\u6280\u80fd:\u964d\u9f99\u5341\u516b\u638c,\u7ed9\u5bf9\u624b\u9020\u6210\u4e86\"+atk1*3+\"\u7684\u4f24\u5bb3\u3002\");\n        return atk1*3;\n    }\n\n\n}\n<\/code><\/pre>\n<h5 id=\"%C2%A0%20%C2%A0%20%C2%A02.%E9%B8%A0%E6%91%A9%E6%99%BA%20%E8%A7%92%E8%89%B2%E8%AE%BE%E8%AE%A1\">\n   <strong><br \/>\n    2.\u9e20\u6469\u667a \u89d2\u8272\u8bbe\u8ba1<br \/>\n   <\/strong><br \/>\n  <\/h5>\n<p>\n   \u7ee7\u627f\u89d2\u8272\u6a21\u677f\uff0c\u8bbe\u7f6e\u81ea\u5df1\u7684\u653b\u51fb\u5c5e\u6027\uff0c\u91cd\u5199\u7236\u7c7b\u653b\u51fb\u65b9\u6cd5\uff0c\u4e0e\u6280\u80fd\u65b9\u6cd5\u3002\n  <\/p>\n<p>\n   \u7531\u4e8e\u6e38\u620f\u6709\u51e0\u7387\u66b4\u51fb\uff0c\u6240\u4ee5\u8bbe\u7f6e\u4e86\u666e\u901a\u653b\u51fb\u80fd\u4ea7\u751f\u66b4\u51fb\uff0c\u4ea7\u751f\u66b4\u51fb\u7684\u65b9\u5f0f\u53ef\u4ee5\u901a\u8fc7\u968f\u673a\u6570\u7684\u653e\u5165\u968f\u673a\u4ea7\u751f\u66b4\u51fb\u3002\n  <\/p>\n<p>\n   \u901a\u8fc7\u4f20\u5165\u84dd\u91cf\u4ece\u800c\u53ef\u4ee5\u4f7f\u7528\u6280\u80fd\n  <\/p>\n<pre><code class=\"language-java\">\/**\n * @Title: JiuMoZhi\n * @Author itmei\n * @Package com.mumu.dome712.zuoye1\n * @Date 2024\/7\/12 16:17\n * @description: \u6e38\u620f\u4eba\u72692-\u9e20\u6469\u667a\n *\/\npublic class JiuMoZhi extends Role {\n    int atk = 4;\n\n    public JiuMoZhi(String name, int hp, int blueDose) {\n        super(name, hp, blueDose);\n        this.atk = atk;\n    }\n\n    \/**\n     *\n     * @param math \u968f\u673a\u6570\u653e\u5165\uff0c\u5982\u679c\u662f1\u62162\u5219\u53ef\u4ee5\u66b4\u51fb\n     * @return\n     *\/\n    @Override\n    public int attack(int math) {\n        int atk1 = this.atk;\n        if (math == 1 || math == 2) {\n            System.out.println(\"\u9e20\u6469\u667a\u5f00\u59cb\u653b\u51fb\u4e86\");\n            System.out.println(\"\u9e20\u6469\u667a\u653b\u51fb\u51fa\u73b0\u4e86\u66b4\u51fb\uff0c\u7ed9\u4e88\u5bf9\u624b\u9020\u6210\u4e86\" + atk1 * 2 + \"\u70b9\u4f24\u5bb3\u3002\");\n            return atk1 * 2;\n        } else {\n            System.out.println(\"\u9e20\u6469\u667a\u5f00\u59cb\u653b\u51fb\u4e86,\u7ed9\u4e88\u5bf9\u624b\u9020\u6210\u4e86\" + atk1 + \"\u70b9\u4f24\u5bb3\u3002\");\n            return atk1;\n        }\n    }\n\n    @Override\n    public int skill(int mp, int a) {\n        int atk1 = this.atk;\n        System.out.println(\"\u9e20\u6469\u667a\u6d88\u8017\u4e8650\u70b9\u5185\u529b\u3002\u4f7f\u7528\u4e86\u81ea\u5df1\u7684\u6280\u80fd:\u706b\u7130\u5200,\u7ed9\u5bf9\u624b\u9020\u6210\u4e86\" + atk1 * 3 + \"\u7684\u4f24\u5bb3\u3002\");\n        return atk1 * 3;\n    }\n}\n\n<\/code><\/pre>\n<h4 id=\"%C2%A0%E4%BA%8C.%E6%88%98%E6%96%97%E7%B3%BB%E7%BB%9F%E8%AE%BE%E8%AE%A1\">\n   \u4e8c.\u6218\u6597\u7cfb\u7edf\u8bbe\u8ba1<br \/>\n  <\/h4>\n<h5 id=\"%C2%A0%20%C2%A0%20%C2%A01.%E6%94%BB%E5%87%BB%E6%96%B9%E5%BC%8F%E7%9A%84%E9%80%89%E6%8B%A9\">\n   1.\u653b\u51fb\u65b9\u5f0f\u7684\u9009\u62e9<br \/>\n  <\/h5>\n<pre><code class=\"language-java\">\/**\n     *\n     * @param character \u8f93\u5165\u5bf9\u8c61\uff0c\u5224\u65ad\u540d\u5b57\n     *   \u9009\u62e9\u653b\u51fb\u65b9\u5f0f\u7684\u65b9\u6cd5\n     *\/\n    public void say(Role character) {\n        System.out.println(\"\u8bf7\u9009\u62e9\" + character.getName() + \"\u7684\u653b\u51fb\u65b9\u5f0f\u3002\");\n        System.out.println(\"1.\u666e\u901a\u653b\u51fb\u3002\");\n        System.out.println(\"2.\u4f7f\u7528\u6280\u80fd\u3002\");\n    }<\/code><\/pre>\n<h5 id=\"%C2%A0%20%C2%A02.%E6%88%98%E6%96%97%E7%B3%BB%E7%BB%9F%E7%BB%BC%E5%90%88%E6%80%A7%E8%AE%BE%E8%AE%A1%C2%A0%C2%A0%C2%A0\">\n   2.\u6218\u6597\u7cfb\u7edf\u7efc\u5408\u6027\u8bbe\u8ba1<br \/>\n  <\/h5>\n<h6 id=\"%E6%88%98%E6%96%97%E5%88%A4%E6%96%AD%E9%80%BB%E8%BE%91%EF%BC%9A\">\n   \u6218\u6597\u5224\u65ad\u903b\u8f91\uff1a<br \/>\n  <\/h6>\n<h6 id=\"%C2%A0%20%E6%94%BB%E5%87%BB%E9%80%BB%E8%BE%91%E4%B8%BA%E5%9B%9E%E5%90%88%E5%88%B6%EF%BC%9A%C2%A0%20%E5%BD%93%E4%B8%80%E6%96%B9%E6%94%BB%E5%87%BB%E5%AE%8C%E6%AF%95%E5%90%8E%EF%BC%8C%E5%8F%A6%E4%B8%80%E6%96%B9%E5%BC%80%E5%A7%8B%E6%94%BB%E5%87%BB%EF%BC%8C%E4%B8%8D%E6%96%AD%E5%BE%AA%E7%8E%AF%EF%BC%9A%E4%B8%80%E6%96%B9%E8%A1%80%E9%87%8F%E5%BD%92%E9%9B%B6%E5%88%99%E6%B8%B8%E6%88%8F%E7%BB%93%C2%A0%20%C2%A0%E6%9D%9F%EF%BC%8C%E5%8D%B3%E5%BE%AA%E7%8E%AF%E7%BB%93%E6%9D%9F\">\n   \u653b\u51fb\u903b\u8f91\u4e3a\u56de\u5408\u5236\uff1a\u00a0 \u5f53\u4e00\u65b9\u653b\u51fb\u5b8c\u6bd5\u540e\uff0c\u53e6\u4e00\u65b9\u5f00\u59cb\u653b\u51fb\uff0c\u4e0d\u65ad\u5faa\u73af\uff1a\u4e00\u65b9\u8840\u91cf\u5f52\u96f6\u5219\u6e38\u620f\u7ed3\u00a0 \u00a0\u675f\uff0c\u5373\u5faa\u73af\u7ed3\u675f<br \/>\n  <\/h6>\n<h6 id=\"%C2%A0%20%E8%A1%80%E9%87%8F%E6%98%AF%E5%90%A6%E4%B8%BA0%3A%C2%A0\">\n   \u8840\u91cf\u662f\u5426\u4e3a0:<br \/>\n  <\/h6>\n<p>\n   \u8840\u91cf\u4e3a0\u6216\u5c0f\u4e8e0\uff1a\u5ba3\u5e03\u83b7\u80dc\u89d2\u8272\uff0c\u7ed3\u675f\u6b64\u7a0b\u5e8f\n  <\/p>\n<p>\n   \u8840\u91cf\u5927\u4e8e0\uff1a\u9009\u62e9\u653b\u51fb\u65b9\u5f0f\uff1a\u666e\u901a\u653b\u51fb\u6216\u653e\u6280\u80fd\n  <\/p>\n<h6 id=\"%E8%93%9D%E9%87%8F%E4%B8%8E%E5%9B%9E%E8%93%9D%E5%88%A4%E6%96%AD%3A\">\n   \u84dd\u91cf\u4e0e\u56de\u84dd\u5224\u65ad:<br \/>\n  <\/h6>\n<p>\n   \u5f53\u4f7f\u7528\u666e\u901a\u653b\u51fb\u65f6\uff0c\u5224\u65ad\u89d2\u8272\u6b64\u523b\u56de\u84dd\u6709\u6ca1\u6709\u8d85\u8fc7\u56de\u84dd\u4e0a\u9650\uff0c\u5982\u679c\u8d85\u8fc7\u5219\u81ea\u52a8\u56de\u590d\u5230\u6700\u5927\u84dd\u91cf\n  <\/p>\n<p>\n   \u5982\u679c\u6ca1\u6709\u8d85\u8fc7\uff0c\u5219\u6b63\u5e38\u56de\u84dd\u3002\n  <\/p>\n<p>\n   \u4f7f\u7528\u6280\u80fd\u65f6\uff1a\u5148\u5224\u65ad\u84dd\u91cf\u662f\u5426\u8db3\u591f\uff0c\u5982\u679c\u8db3\u591f\u5219\u6b63\u5e38\u653e\u6280\u80fd\u3002\u4e14\u56de\u84dd\u6b63\u5e38\n  <\/p>\n<p>\n   \u5982\u679c\u4e0d\u8db3\u591f\uff1a\u5219\u8c03\u7528\u666e\u5de5\u653b\u51fb\u65b9\u6cd5\uff0c\u6b63\u5e38\u56de\u84dd\u3002\n  <\/p>\n<pre><code class=\"language-java\">\/**\n     *\n     * @param character1 \u89d2\u82721\n     * @param character2 \u89d2\u82722\n     *\/\n    public void Battle(Role character1, Role character2) {\n        Random random = new Random();\n        Scanner input = new Scanner(System.in);\n        \/\/\u4e54\u5cf0\u7684\u8840\u91cf\u548c\u84dd\u91cf\n        int hp1 = character1.getHp();\n        int mp1 = character1.getBlueDose();\n        \/\/\u9e20\u6469\u667a\u7684\u8840\u91cf\u548c\u84dd\u91cf\n        int hp2 = character2.getHp();\n        int mp2 = character2.getBlueDose();\n        \/\/\u4e54\u5cf0\u6bcf\u56de\u5408\u80fd\u589e\u52a0\u7684\u84dd\u91cf\n        int addmp1 = 15;\n        \/\/\u9e20\u6469\u667a\u6bcf\u56de\u5408\u80fd\u589e\u52a0\u7684\u84dd\u91cf\n        int addmp2 = 20;\n\n        while (hp1 &gt; 0 &amp;&amp; hp2 &gt; 0) {\n            \/\/\u5b9a\u4e49\u4fe9\u4e2a\u968f\u673a\u6570\uff0c\u4e3a\u968f\u673a\u66b4\u51fb\u7684\u6570\n            int math = random.nextInt(10);\n            int math2 = random.nextInt(10);\n\n            \/\/\u4e54\u5cf0\u5f00\u59cb\u653b\u51fb,\u9009\u62e9\u653b\u51fb\u65b9\u5f0f\n            this.say(character1);\n            \/\/\u8f93\u51651.2\u6765\u9009\u62e9\u653b\u51fb\u65b9\u5f0f\n            int nmb = input.nextInt();\n            System.out.println(\"\u4e54\u5cf0\u5f00\u59cb\u653b\u51fb\u4e86\");\n            \/\/\u7528if\u5224\u65ad\u662f\u4f7f\u7528\u666e\u901a\u653b\u51fb\u8fd8\u662f\u6280\u80fd\n            if (nmb == 1) {\n                \/\/\u653b\u51fb\u5230\u9e20\u6469\u667a\uff0c\u9e20\u6469\u667a\u8840\u91cf\u4e0b\u964d\n                hp2 = hp2 - character1.attack(math);\n                \/\/\u6bcf\u56de\u5408\u81ea\u52a8\u56de\u84dd\uff0c\u5224\u65ad\u4e54\u5cf0\u7684\u84dd\u91cf\u6709\u6ca1\u6709\u8d85\u8fc7\u84dd\u91cf\u4e0a\u9650\u3002\n                if (mp1 &gt; 0 &amp;&amp; mp1 &lt; 85) {\n                    mp1 = mp1 + 15;\n                } else {\n                    mp1 = character1.getBlueDose();\n                }\n                System.out.println(\"\u6b64\u65f6\" + character2.getName() + \"\u8fd8\u5269\" + hp2 + \"\u7684\u8840\u91cf\");\n                System.out.println(\"\u6b64\u65f6\" + character1.getName() + \"\u8fd8\u5269\" + mp1 + \"\u7684\u84dd\u91cf\");\n                System.out.println(\"\");\n                \/\/\u5224\u65ad\u5bf9\u624b\u8840\u91cf\u662f\u5426\u5c0f\u4e8e\u7b49\u4e8e0\n                if (hp2 &lt;= 0) {\n                    System.out.println(character1.getName() + \"ko\u4e86\" + character2.getName());\n                    System.out.println(\"\u606d\u559c\u4e54\u5cf0\u83b7\u5f97\u4e86\u80dc\u5229\u3002\");\n                    System.exit(0);\n                }\n            } else if (nmb == 2) {\n                \/\/\u5148\u5224\u65ad\u4e54\u5cf0\u6b64\u65f6\u84dd\u91cf\u662f\u5426\u591f\u4f7f\u7528\u6280\u80fd\n                if (mp1 &lt; 50) {\n                    \/\/\u4e54\u5cf0\u84dd\u91cf\u4e0d\u8db3\uff0c\u65e0\u6cd5\u53d1\u52a8\u6280\u80fd\uff0c\u81ea\u52a8\u666e\u901a\u653b\u51fb\n                    System.out.println(\"\u5bf9\u4e0d\u8d77\uff0c\u5185\u529b\u4e0d\u8db3\uff0c\u4e54\u5cf0\u65e0\u6cd5\u53d1\u52a8\u6280\u80fd\u3002\");\n                    character1.attack(math);\n                    mp1 = mp1 + 15;\n                    System.out.println(\"\u6b64\u65f6\" + character2.getName() + \"\u8fd8\u5269\" + hp2 + \"\u7684\u8840\u91cf\");\n                    System.out.println(\"\u6b64\u65f6\" + character1.getName() + \"\u8fd8\u5269\" + mp1 + \"\u7684\u84dd\u91cf\");\n                    System.out.println(\"\");\n                    \/\/\u5224\u65ad\u5bf9\u624b\u8840\u91cf\u662f\u5426\u5c0f\u4e8e\u7b49\u4e8e0\n                    if (hp2 &lt;= 0) {\n                        System.out.println(character1.getName() + \"ko\u4e86\" + character2.getName());\n                        System.out.println(\"\u606d\u559c\u4e54\u5cf0\u83b7\u5f97\u4e86\u80dc\u5229\u3002\");\n                        break;\n                    }\n                } else {\n                    \/\/\u4e54\u5cf0\u84dd\u91cf\u8db3\u4ee5\u53d1\u52a8\u6280\u80fd\n                    \/\/\u653b\u51fb\u5230\u9e20\u6469\u667a\uff0c\u9e20\u6469\u667a\u8840\u91cf\u4e0b\u964d\n                    hp2 = hp2 - character1.skill(mp1, math);\n                    \/\/\u4e54\u5cf0\u5f00\u59cb\u56de\u84dd\n                    mp1 = mp1 - 50 + 15;\n                    System.out.println(\"\u6b64\u65f6\" + character2.getName() + \"\u8fd8\u5269\" + hp2 + \"\u7684\u8840\u91cf\");\n                    System.out.println(\"\u6b64\u65f6\" + character1.getName() + \"\u8fd8\u5269\" + mp1 + \"\u7684\u84dd\u91cf\");\n                    System.out.println(\"\");\n                    \/\/\u5224\u65ad\u5bf9\u624b\u8840\u91cf\u662f\u5426\u5c0f\u4e8e\u7b49\u4e8e0\n                    if (hp2 &lt;= 0) {\n                        System.out.println(character1.getName() + \"ko\u4e86\" + character2.getName());\n                        System.out.println(\"\u606d\u559c\u4e54\u5cf0\u83b7\u5f97\u4e86\u80dc\u5229\u3002\");\n                        break;\n                    }\n                }\n            }\n            \/\/\u9e20\u6469\u667a\u5f00\u59cb\u653b\u51fb,\u9009\u62e9\u653b\u51fb\u65b9\u5f0f\n            this.say(character2);\n            \/\/\u8f93\u51651.2\u6765\u9009\u62e9\u653b\u51fb\u65b9\u5f0f\n            int nmb2 = input.nextInt();\n            System.out.println(\"\u9e20\u6469\u667a\u5f00\u59cb\u653b\u51fb\u4e86\");\n\n            \/\/\u7528if\u5224\u65ad\u662f\u4f7f\u7528\u666e\u901a\u653b\u51fb\u8fd8\u662f\u6280\u80fd\n            if (nmb2 == 1) {\n                \/\/\u653b\u51fb\u5230\u4e54\u5cf0\uff0c\u4e54\u5cf0\u667a\u8840\u91cf\u4e0b\u964d\n                hp1 = hp1 - character1.attack(math2);\n                \/\/\u6bcf\u56de\u5408\u81ea\u52a8\u56de\u84dd\uff0c\u5224\u65ad\u4e54\u5cf0\u7684\u84dd\u91cf\u6709\u6ca1\u6709\u8d85\u8fc7\u84dd\u91cf\u4e0a\u9650\u3002\n                if (mp1 &gt; 0 &amp;&amp; mp2 &lt; 80) {\n                    mp2 = mp2 + 20;\n                } else {\n                    mp2 = character2.getBlueDose();\n                }\n                System.out.println(\"\u6b64\u65f6\" + character1.getName() + \"\u8fd8\u5269\" + hp1 + \"\u7684\u8840\u91cf\");\n                System.out.println(\"\u6b64\u65f6\" + character2.getName() + \"\u8fd8\u5269\" + mp2 + \"\u7684\u84dd\u91cf\");\n                System.out.println(\"\");\n                \/\/\u5224\u65ad\u5bf9\u624b\u8840\u91cf\u662f\u5426\u5c0f\u4e8e\u7b49\u4e8e0\n                if (hp1 &lt;= 0) {\n                    System.out.println(character2.getName() + \"ko\u4e86\" + character1.getName());\n                    System.out.println(\"\u606d\u559c\u9e20\u6469\u667a\u83b7\u5f97\u4e86\u80dc\u5229\u3002\");\n                    break;\n                }\n            } else if (nmb2 == 2) {\n                \/\/\u5148\u5224\u65ad\u9e20\u6469\u667a\u6b64\u65f6\u84dd\u91cf\u662f\u5426\u591f\u4f7f\u7528\u6280\u80fd\n                if (mp2 &lt; 50) {\n                    \/\/\u9e20\u6469\u667a\u84dd\u91cf\u4e0d\u8db3\uff0c\u65e0\u6cd5\u53d1\u52a8\u6280\u80fd\uff0c\u81ea\u52a8\u666e\u901a\u653b\u51fb\n                    System.out.println(\"\u5bf9\u4e0d\u8d77\uff0c\u5185\u529b\u4e0d\u8db3\uff0c\u9e20\u6469\u667a\u65e0\u6cd5\u53d1\u52a8\u6280\u80fd\u3002\");\n                    character2.attack(math2);\n                    mp2 = mp2 + 20;\n                    System.out.println(\"\u6b64\u65f6\" + character1.getName() + \"\u8fd8\u5269\" + hp1 + \"\u7684\u8840\u91cf\");\n                    System.out.println(\"\u6b64\u65f6\" + character2.getName() + \"\u8fd8\u5269\" + mp2 + \"\u7684\u84dd\u91cf\");\n                    System.out.println(\"\");\n                    \/\/\u5224\u65ad\u5bf9\u624b\u8840\u91cf\u662f\u5426\u5c0f\u4e8e\u7b49\u4e8e0\n                    if (hp1 &lt;= 0) {\n                        System.out.println(character2.getName() + \"ko\u4e86\" + character1.getName());\n                        System.out.println(\"\u606d\u559c\u9e20\u6469\u667a\u83b7\u5f97\u4e86\u80dc\u5229\u3002\");\n                        break;\n                    }\n                } else {\n                    \/\/\u9e20\u6469\u667a\u84dd\u91cf\u8db3\u4ee5\u53d1\u52a8\u6280\u80fd\n                    \/\/\u653b\u51fb\u5230\u4e54\u5cf0\uff0c\u4e54\u5cf0\u8840\u91cf\u4e0b\u964d\n                    hp1 = hp1 - character2.skill(mp1, math2);\n                    \/\/\u9e20\u6469\u667a\u5f00\u59cb\u56de\u84dd\n                    mp2 = mp2 - 50 + 25;\n                    System.out.println(\"\u6b64\u65f6\" + character1.getName() + \"\u8fd8\u5269\" + hp1 + \"\u7684\u8840\u91cf\");\n                    System.out.println(\"\u6b64\u65f6\" + character2.getName() + \"\u8fd8\u5269\" + mp2 + \"\u7684\u84dd\u91cf\");\n                    System.out.println(\"\");\n                    \/\/\u5224\u65ad\u5bf9\u624b\u8840\u91cf\u662f\u5426\u5c0f\u4e8e\u7b49\u4e8e0\n                    if (hp1 &lt;= 0) {\n                        System.out.println(character2.getName() + \"ko\u4e86\" + character1.getName());\n                        System.out.println(\"\u606d\u559c\u9e20\u6469\u667a\u83b7\u5f97\u4e86\u80dc\u5229\u3002\");\n                        break;\n                    }\n                }\n            }\n        }\n    }\n<\/code><\/pre>\n<h4 id=\"%C2%A0%20%E4%B8%89.%E6%B5%8B%E8%AF%95\">\n   \u4e09.\u6d4b\u8bd5<br \/>\n  <\/h4>\n<p>\n   \u521b\u5efa\u89d2\u8272\u5bf9\u8c61\uff0c\u8c03\u7528\u6218\u6597\u7cfb\u7edf\u5f00\u59cb\u6e38\u73a9\u3002\n  <\/p>\n<pre><code class=\"language-java\">\nimport java.util.Random;\n\n\/**\n * @Title: Test\n * @Author itmei\n * @Package com.mumu.dome712.zuoye1\n * @Date 2024\/7\/12 16:44\n * @description: \u6d4b\u8bd5\u7c7b\n *\/\npublic class Test {\n    public static void main(String[] args) {\n        Random random =new Random();\n        Role qiaofeng =new QiaoFeng(\"\u4e54\u5cf0\",100,100);\n        Role jiumozhi =new JiuMoZhi(\"\u9e20\u6469\u667a\",100,100);\n        CombatSystem combatSystem =new CombatSystem();\n        System.out.println(\"\u6e38\u620f\u5373\u5c06\u5f00\u59cb\u3002\");\n        combatSystem.Battle(qiaofeng,jiumozhi);\n    }\n\n\n}<\/code><\/pre>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6807\uff1a\u6218\u6597\u7cfb\u7edf\u5b8c\u5584\uff0c\u53ea\u9700\u5f55\u5165\u6218\u6597\u7684\u4fe9\u4e2a\u89d2\u8272\u5373\u53ef\u5f00\u59cb\u6218\u6597\uff1a 1.\u5bf9\u6218\u65f6\u8840\u91cf\u6e05\u96f6\u6218\u6597\u7ed3\u675f\uff0c\u516c\u5e03\u83b7\u80dc\u89d2\u8272\u3002 2.\u89d2\u8272 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-32"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/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.wunen.com\/index.php\/2025\/03\/28\/java\u7b80\u6613\u5bf9\u6218\u6e38\u620f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u6807\uff1a\u6218\u6597\u7cfb\u7edf\u5b8c\u5584\uff0c\u53ea\u9700\u5f55\u5165\u6218\u6597\u7684\u4fe9\u4e2a\u89d2\u8272\u5373\u53ef\u5f00\u59cb\u6218\u6597\uff1a 1.\u5bf9\u6218\u65f6\u8840\u91cf\u6e05\u96f6\u6218\u6597\u7ed3\u675f\uff0c\u516c\u5e03\u83b7\u80dc\u89d2\u8272\u3002 2.\u89d2\u8272 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java\u7b80\u6613\u5bf9\u6218\u6e38\u620f\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-27T16:00:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\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@wunen\" \/>\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\":\"Article\",\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f\",\"datePublished\":\"2025-03-27T16:00:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/\"},\"wordCount\":1,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u5bf9\u6218\u683c\u6597\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/\",\"url\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/\",\"name\":\"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"https:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-03-27T16:00:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wunen.com\/#website\",\"url\":\"https:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"https:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","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.wunen.com\/index.php\/2025\/03\/28\/java\u7b80\u6613\u5bf9\u6218\u6e38\u620f\/","og_locale":"zh_CN","og_type":"article","og_title":"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"\u76ee\u6807\uff1a\u6218\u6597\u7cfb\u7edf\u5b8c\u5584\uff0c\u53ea\u9700\u5f55\u5165\u6218\u6597\u7684\u4fe9\u4e2a\u89d2\u8272\u5373\u53ef\u5f00\u59cb\u6218\u6597\uff1a 1.\u5bf9\u6218\u65f6\u8840\u91cf\u6e05\u96f6\u6218\u6597\u7ed3\u675f\uff0c\u516c\u5e03\u83b7\u80dc\u89d2\u8272\u3002 2.\u89d2\u8272 [&hellip;]","og_url":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java\u7b80\u6613\u5bf9\u6218\u6e38\u620f\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-03-27T16:00:14+00:00","og_image":[{"width":260,"height":180,"url":"https:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#article","isPartOf":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/"},"author":{"name":"admin@wunen","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f","datePublished":"2025-03-27T16:00:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/"},"wordCount":1,"commentCount":0,"publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"image":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u5bf9\u6218\u683c\u6597"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/","url":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/","name":"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"https:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#primaryimage"},"image":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-03-27T16:00:14+00:00","breadcrumb":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"https:\/\/www.wunen.com\/index.php\/2025\/03\/28\/java%e7%ae%80%e6%98%93%e5%af%b9%e6%88%98%e6%b8%b8%e6%88%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"JAVA\u7b80\u6613\u5bf9\u6218\u6e38\u620f"}]},{"@type":"WebSite","@id":"https:\/\/www.wunen.com\/#website","url":"https:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"https:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}