{"id":281,"date":"2012-10-05T11:26:27","date_gmt":"2012-10-05T02:26:27","guid":{"rendered":"http:\/\/bellsprite.com\/?p=281"},"modified":"2012-10-05T11:26:27","modified_gmt":"2012-10-05T02:26:27","slug":"%e3%80%90%e7%bc%96%e7%a8%8b%e3%80%91java%e5%88%9d%e5%a7%8b%e5%8c%96list%e7%9a%84%e5%b0%8f%e6%8a%80%e5%b7%a7","status":"publish","type":"post","link":"https:\/\/bellsprite.com\/?p=281","title":{"rendered":"\u3010\u7f16\u7a0b\u3011Java\u521d\u59cb\u5316List\u7684\u5c0f\u6280\u5de7"},"content":{"rendered":"<p>\u6211\u559c\u6b22\u7528ArrayList\u5bb9\u5668\u505a\u53c2\u6570\uff0c\u4f46\u603b\u662f\u4e3a\u586b\u5145\u4e00\u4e2a\u4e34\u65f6\u7684ArrayList\u4e0d\u591f\u65b9\u4fbf\u800c\u82e6\u607c\u3002<\/p>\n<p><\/p>\n<p>\u6bd4\u5982\u8bf4\uff0c\u4ee5\u524d\uff0c\u5982\u679c\u6709\u4e00\u4e2aArrayList&lt;String&gt;\u505a\u5bb9\u5668\u7684\u51fd\u6570&nbsp;handleStrList(ArrayList&lt;String&gt;&nbsp;args)&nbsp;\u7684\u8bdd\uff0c\u4e3a\u4e86\u521b\u5efa\u4e34\u65f6List\u5582\u7ed9\u5b83\uff0c\u6211\u4f1a\u8fd9\u6837\u5199\uff1a<\/p>\n<p><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">handleStrList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">(&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 128); font-weight: bold; \">new<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">ArrayList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&lt;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">String<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&gt;(){{<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">add<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_1&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">);<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">add<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_2&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">);<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">}})<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/>\u4e0a\u9762\u7684\u4ee3\u7801\u7ea6\u7b49\u4e8e\uff1a<br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 128); font-weight: bold; \">class<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">myTemp0001<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 128); font-weight: bold; \">extends<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">ArrayList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&lt;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">String<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&gt;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">{<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">{<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">add<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_1&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">);<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">add<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_2&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">);<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">}<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">}<\/span><br style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \" \/><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">handleStrList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">(&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 128); font-weight: bold; \">new<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">myTemp0001()<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;)<\/span><\/p>\n<p><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \"><br \/><\/span><\/p>\n<p>\u5199\u90a3\u4e48\u591a\u4e2aadd\u5f88\u8ba8\u538c\uff0c\u4e5f\u4e0d\u4f18\u96c5\uff0c\u4f46\u4f18\u96c5\u7684\u6211\u4e0d\u4f1a-&nbsp;&#8211;<\/p>\n<p>\u76f4\u5230\u540e\u6765\uff0c\u6211\u5b66\u5230\u8fd9\u62db\uff1a<\/p>\n<p><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">handleStrList(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 128); font-weight: bold; \">new<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">ArrayList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&lt;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">String<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&gt;(&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">Arrays<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">.<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(255, 0, 0); \">asList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_1&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">,<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_2&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">)&nbsp;)&nbsp;)<\/span><\/p>\n<p>\u5982\u679chandleStrList\u51fd\u6570\u4e0d\u4f1a\u589e\u5220\u6539\u52a8\u5b83\u7684\u53c2\u6570\u7684\u8bdd\uff0c\u4e0a\u9762\u7684&nbsp;<span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 128); font-weight: bold; \">new<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">ArrayList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&lt;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">String<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&gt;<\/span>&nbsp;\u90e8\u5206\u4e5f\u53ef\u4ee5\u7701\u7565\uff1a<\/p>\n<p><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">handleStrList(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 128); font-weight: bold; \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">Arrays<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">.<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(255, 0, 0); \">asList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_1&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">,<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_2&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">)&nbsp;)<\/span><\/p>\n<p>\u4f18\u96c5\u591a\u4e86\u54c8^_^<\/p>\n<p>\u539f\u7406\u6211\u61c2\uff0c\u4f60\u4e00\u67e5\u4f60\u4e5f\u77e5\u9053\uff0c\u5c31\u4e0d\u5728\u8fd9\u91cc\u5356\u5f04\u4e86<\/p>\n<p><\/p>\n<p>\u8fd9\u79cd\u5c0f\u6280\u5de7\u5bf9\u7f16\u7a0b\u57fa\u672c\u4e0a\u6ca1\u6709\u4ec0\u4e48\u5e2e\u52a9\uff0c\u4e0d\u8fc7\u5076\u5c14\u60f3\u5230\u4e86\uff0c\u89c9\u5f97\u633a\u6709\u8da3\u7684\uff0c\u5c31\u8bf4\u4e00\u4e0b\u5427\u3002<\/p>\n<div id=\"baidu_pastebin\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; left: -1000px; top: 105px; \">\n<p>\u5982<\/p>\n<p>\u679chandleStrList\u51fd\u6570\u4e0d\u4f1a\u589e\u5220\u6539\u52a8\u5b83\u7684\u53c2\u6570\u7684\u8bdd\uff0c\u4e0a\u9762\u7684<\/p>\n<p><span style=\"white-space: nowrap;\">new&nbsp;ArrayList&lt;String&gt;(){{<\/span><\/p>\n<p><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \"><br \/><\/span><\/p>\n<p><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">handleStrList(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 128); font-weight: bold; \">&nbsp;new<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">ArrayList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&lt;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">String<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">&gt;(&nbsp;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">Arrays<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">.<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(255, 0, 0); \">asList<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">(<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_1&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">,<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); color: rgb(0, 0, 255); \">&quot;string_2&quot;<\/span><span style=\"font-family: &#39;[object HTMLOptionElement]&#39;, Consolas, &#39;Lucida Console&#39;, &#39;Courier New&#39;; font-size: 14px; background-color: rgb(241, 254, 235); \">)&nbsp;)&nbsp;)<\/span><\/p>\n<p><span style=\"white-space: nowrap;\">&nbsp;&nbsp;add(&quot;string_1&quot;)<\/span><\/p>\n<p><span style=\"white-space: nowrap;\"><br \/><\/span><\/p>\n<p><span style=\"white-space: nowrap;\">;<\/span><\/p>\n<div id=\"baidu_pastebin\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; left: -1000px; top: 105px; \"><span style=\"white-space: nowrap;\">&nbsp;&nbsp;add(&quot;string_2&quot;);<\/span><\/div>\n<div id=\"baidu_pastebin\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; left: -1000px; top: 105px; \"><span style=\"white-space: nowrap;\">}}<\/span><\/div>\n<div id=\"baidu_pastebin\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; left: -1000px; top: 105px; \"><span style=\"white-space: nowrap;\"><br \/><\/span><\/div>\n<div id=\"baidu_pastebin\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; left: -1000px; top: 105px; \"><span style=\"white-space: nowrap;\"><br \/><\/span><\/div>\n<div id=\"baidu_pastebin\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; left: -1000px; top: 105px; \"><span style=\"white-space: nowrap;\">class&nbsp;myTemp0001&nbsp;extends&nbsp;ArrayList&lt;String&gt;&nbsp;{<\/span><\/div>\n<div id=\"baidu_pastebin\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; left: -1000px; top: 105px; \">{<\/div>\n<p>add<\/p>\n<p><\/p>\n<p>(&quot;string_1&quot;);<\/p>\n<div id=\"baidu_pastebin\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; left: -1000px; top: 105px; \">add(&quot;string_2&quot;);<\/div>\n<div id=\"baidu_pastebin\" style=\"position: absolute; width: 1px; height: 1px; overflow: hidden; left: -1000px; top: 105px; \">}<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u559c\u6b22\u7528ArrayList\u5bb9\u5668\u505a\u53c2\u6570\uff0c\u4f46\u603b\u662f\u4e3a\u586b\u5145\u4e00\u4e2a\u4e34\u65f6\u7684ArrayList\u4e0d\u591f\u65b9\u4fbf\u800c\u82e6\u607c\u3002 \u6bd4\u5982\u8bf4\uff0c\u4ee5\u524d\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-281","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"views":15333,"_links":{"self":[{"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bellsprite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281"}],"version-history":[{"count":1,"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":282,"href":"https:\/\/bellsprite.com\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions\/282"}],"wp:attachment":[{"href":"https:\/\/bellsprite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bellsprite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bellsprite.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}