摘要:
# 记录一次错误 ```java 需求:输出一个爱心 *** *** ********* ******* ***** *** * public class ForExer{ public static void main(String[] args) { for (int i = 6 ; i >= 阅读全文
摘要:
# 运算符 % 运算符满足公式 ~~~mathematica a % b = a - (int)a/b * b -10 % -3 = -1 ~~~ ++,--运算 ~~~java int j = 8; int k = ++j; //输出结果都是9 Sysout.out.println("j=" + 阅读全文
摘要:
# 自动类型转换 java可以从低精度自动转换到高精度 1. byte——short——int——long——float——double 2. char——int——long——float——double ~~~java public class AutoConvert{ public static 阅读全文