2019年7月12日

摘要: //测试算术运算符:+ - + - * / % ++ -- +(连接符) class TestAri{ public static void main(String[] args) { //除:/ int i = 12; int j = i/5; double d = i/5; double d1 阅读全文
posted @ 2019-07-12 13:59 凯凯的猪 阅读(198) 评论(0) 推荐(0)
 
摘要: /*变量之间的运算(不考虑boolen。剩下:char byte short int long float double)1.自动类型转换2.强制类型转换*/class TestVeriable1 { public static void main(String[] args) { //1.自动类型 阅读全文
posted @ 2019-07-12 13:22 凯凯的猪 阅读(103) 评论(0) 推荐(0)