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

          常用鏈接

          留言簿

          隨筆檔案

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          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 閱讀(216) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 志丹县| 石楼县| 陆河县| 河东区| 益阳市| 东方市| 南城县| 称多县| 芮城县| 柳河县| 旅游| 杭锦旗| 乐山市| 重庆市| 贡觉县| 屯昌县| 赫章县| 科技| 兴海县| 兰州市| 鄂温| 阿合奇县| 九龙城区| 民和| 罗平县| 汉川市| 讷河市| 凉山| 新安县| 二连浩特市| 香格里拉县| 舞阳县| 松桃| 耒阳市| 黔西| 新绛县| 东至县| 东安县| 乌什县| 宿松县| 潍坊市|