摘要: public class HelloWorld { public static void main(String[] args) { //类型转换 //低 >高 //byte, short, char-> int-> long-> float-> double //运算时,不同类型的数据先转换为同一 阅读全文
posted @ 2022-08-02 14:11 一颗橡皮橙 阅读(27) 评论(0) 推荐(0)
摘要: public class HelloWorld { public static void main(String[] args) { //八大数据类型 //整数 int num1 = 10; byte num2 = 20; short num3 = 30; long num4 = 30L; //L用 阅读全文
posted @ 2022-08-02 09:55 一颗橡皮橙 阅读(16) 评论(0) 推荐(0)