{"id":413,"date":"2019-02-13T22:51:32","date_gmt":"2019-02-13T14:51:32","guid":{"rendered":"http:\/\/www.eait.co\/?p=413"},"modified":"2019-04-05T12:32:53","modified_gmt":"2019-04-05T04:32:53","slug":"java%e7%ad%9b%e9%80%89%e6%9c%80%e5%a4%a7%e6%9c%80%e5%b0%8f%e5%80%bc","status":"publish","type":"post","link":"https:\/\/notes.coremix.net\/?p=413","title":{"rendered":"java\u7b5b\u9009\u6700\u5927\u6700\u5c0f\u503c"},"content":{"rendered":"<pre>\/**\r\n * Created by xabcd on 2019\/2\/13.\r\n *\/\r\npublic class Java_maxmin\r\n{public static void main(String args[])\r\n{\r\n    int i,max,min;\r\n    int A[]={74,48,30,17,62};\r\n    min = max = A[0];\r\n    System.out.print(\"\u6570\u7ec4A\u5305\u542b\u7684\u5143\u7d20\u5305\u62ec\uff1a\");\r\n\r\n    for (i  = 0;i&lt;A.length;i++)\r\n    {System.out.println(A[i]+\"  \");\r\n        if (A[i]&gt;max)\r\n            max = A[i];\r\n        if (A[i]&lt;min)\r\n            min = A[i];\r\n\r\n\r\n    }\r\n    System.out.println(\"\u6700\u5927\u503c\"+max);\r\n    System.out.println(\"\u6700\u5c0f\u503c\"+min);\r\n}\r\n}<\/pre>\n<pre>\/**\r\n * Created by xabcd on 2019\/2\/13.\r\n *\/\r\npublic class Java_maxmin\r\n{public static void main(String args[])\r\n{\r\n    int i,max,min;\r\n    int A[]={74,48,30,17,62};\r\n    min = max = A[0];\r\n    System.out.print(\"\u6570\u7ec4A\u5305\u542b\u7684\u5143\u7d20\u5305\u62ec\uff1a\");\r\n\r\n    for (i  = 0;i&lt;A.length;i++)\r\n    {System.out.println(A[i]+\"  \");\r\n        if (A[i]&gt;max)\r\n            max = A[i];\r\n        if (A[i]&lt;min)\r\n            min = A[i];\r\n\r\n\r\n    }\r\n    System.out.println(\"\u6700\u5927\u503c\"+max);\r\n    System.out.println(\"\u6700\u5c0f\u503c\"+min);\r\n}\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<\/pre>\n<p>\u6570\u7ec4A\u5305\u542b\u7684\u5143\u7d20\u5305\u62ec\uff1a74<br \/>\n48<br \/>\n30<br \/>\n17<br \/>\n62<br \/>\n\u6700\u5927\u503c74<br \/>\n\u6700\u5c0f\u503c17<\/p>\n<p>Process finished with exit code 0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/** * Created by xabcd on 2019\/2\/13. *\/ public class Ja [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,24],"tags":[],"class_list":["post-413","post","type-post","status-publish","format-standard","hentry","category-java","category-base_code"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=413"}],"version-history":[{"count":2,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/413\/revisions"}],"predecessor-version":[{"id":415,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=\/wp\/v2\/posts\/413\/revisions\/415"}],"wp:attachment":[{"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.coremix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}