java技術博客

          jsp博客
          數據加載中……
          i++與++i的區別
          public class ppDemo
          {
              
          public static void main(String[] args)
              
          {
              
          int result=0;
              
          int p=2*result++;
              System.out.println(p);
              System.out.println(result);
              result
          =0;
              
          int y=2*++result;
              System.out.println(result);
              System.out.println(y);
              }

          }

          posted on 2008-11-03 14:37 郭興華 閱讀(126) 評論(0)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 拜泉县| 承德县| 杨浦区| 河津市| 清河县| 康马县| 修水县| 陈巴尔虎旗| 于都县| 隆尧县| 舞阳县| 图片| 邹城市| 石屏县| 鲜城| 开原市| 邵武市| 武汉市| 惠州市| 普格县| 鲜城| 宕昌县| 册亨县| 泸水县| 驻马店市| 怀集县| 新干县| 洪洞县| 河北省| 江津市| 阳东县| 云和县| 镇沅| 西华县| 沧州市| 夏津县| 吐鲁番市| 胶南市| 高雄县| 常山县| 桃园县|