码迷,mamicode.com
首页 > 其他好文 > 详细

7.算术运算符的使用

时间:2016-05-27 23:19:37      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:

package test;

public class TestCalc {
    public static void main(String[] args) {
        System.out.println(6/4);
        System.out.println(6%4);
        int i=8;
        int j=i++ +2;
        int m=8;
        int k=++m +2;
        System.out.println(j);
        System.out.println(k);
    }
}

 

7.算术运算符的使用

标签:

原文地址:http://www.cnblogs.com/xiaotaoxu/p/5536261.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!