Java学习笔记整理

1. 扩展的赋值运算符其实隐含了一个强制类型转换   s += 1; 等价于 s = (s的数据类型)(s+1) 2. 键盘录入 ①import java.util.Scanner; ②Scanner sc = new Scanner(System.in); ③int x = sc.nextInt(); 3. implements 是实现接口的关键字(里面有对接口抽象方法的具体实现) interf
相关文章
相关标签/搜索