摘要:
public static void main(String[] args) { //1. ==:表示==号左右两边的数值或者结果是否相等 int i = 1; int j = 1; System.out.println(i == j); //2.逻辑运算符 // &&与运算:两个条件同时满足 in 阅读全文
摘要:
public class TestChange { public static void main(String[] args) { //1.自动类型转换; double d = 1;//double = int ;小->大 System.out.println(d); //2.强制类型转换 int 阅读全文
摘要:
public static void main(String[] args) { //1.long的直接量,需要在熟知的末尾添加l和L long i = 2147483648l;//-2147473648~2147483647 long a = 1; long b = 1l; //a和b有什么区别呢 阅读全文