java2從頭開學(xué)(2)

          package 數(shù)據(jù)類型;

          class Array {
          ?public static void main(String args[]){
          ??int month_days[];
          ??month_days = new int[12];
          ??month_days[0] = 31;
          ??month_days[1] = 28;
          ??month_days[2] = 31;
          ??month_days[3] = 30;
          ??month_days[4] = 31;
          ??month_days[5] = 30;
          ??month_days[6] = 31;
          ??month_days[7] = 31;
          ??month_days[8] = 30;
          ??month_days[9] = 31;
          ??month_days[10] = 30;
          ??month_days[11] = 31;
          ??System.out.println("April has " + month_days[3] + " days.");
          ?}

          }

          posted on 2008-04-11 14:30 dripstone 閱讀(124) 評論(0)  編輯  收藏


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


          網(wǎng)站導(dǎo)航:
           
          <2008年4月>
          303112345
          6789101112
          13141516171819
          20212223242526
          27282930123
          45678910

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿(1)

          隨筆分類(1)

          隨筆檔案(16)

          友情鏈接

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 伊春市| 宁南县| 卢龙县| 故城县| 称多县| 乌鲁木齐市| 军事| 江北区| 永济市| 金溪县| 景谷| 万年县| 通城县| 石河子市| 新建县| 运城市| 会昌县| 连江县| 霞浦县| 克东县| 东乡县| 呼和浩特市| 富裕县| 阳原县| 北碚区| 商河县| 昌黎县| 凤冈县| 宁海县| 郎溪县| 威宁| 乃东县| 昌图县| 冕宁县| 玉田县| 新宁县| 汶川县| 洛南县| 霍州市| 神池县| 乌拉特后旗|