2021年12月2日

Java3基础

摘要: 类型转换 由于Java是强类型语言,所有要进行有些运算的时候,需要用到类型转换 //低 > 高byte,short,char-> int -> long -> float-> double 运算中,不同类型的数据须先转换为同一类型,再进行运算 强制类型转换 高 >低 自动类型转换 低 >高 publ 阅读全文

posted @ 2021-12-02 15:41 海丿鸢 阅读(133) 评论(0) 推荐(0)

Java2基础

摘要: 数据类型 强类型语言 变量的使用要严格符合规定,所有变量都必须先定义后才能使用 public class Demo02 { public static void main(String[] args) { String a = "hello"; int num = 10; System.out.pr 阅读全文

posted @ 2021-12-02 10:56 海丿鸢 阅读(112) 评论(0) 推荐(0)

导航