隨筆 - 26  文章 - 2  trackbacks - 0
          <2011年10月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          public class TestMethod {
          public static void main(String[] args) {
          m();
          m2(2);
          m3('3', 4);
          m4(4, 6);
          int i = m4(4, 6);
          System.out.println(i);
          }
          public static void m() {
          //return;
          System.out.println("ok");
          System.out.println("hello");
          }
          public static void m2(int i) {
          if(i > 3) 
          return;
          System.out.println(i);
          }
          public static void m3(int i, int j) {
          System.out.println(i + j);
          }
          public static int m4(int i, int j) {
          return i > j ? i : j;
          }
          }
          posted on 2011-10-09 21:28 Java_liyadong 閱讀(214) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 南丰县| 本溪| 璧山县| 武川县| 永德县| 昌江| 木兰县| 海阳市| 宜君县| 道真| 临洮县| 彰化市| 纳雍县| 济宁市| 马龙县| 平果县| 保靖县| 方山县| 茂名市| 晋城| 汨罗市| 炎陵县| 澳门| 南漳县| 明光市| 玛多县| 青田县| 息烽县| 营口市| 怀宁县| 平度市| 汝州市| 赣州市| 禹州市| 湖南省| 都昌县| 奉化市| 顺义区| 霍城县| 民勤县| 婺源县|