摘要: Java输入输出流 public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("请输入:"); if (scanner.hasNextLine()) { 阅读全文
posted @ 2022-07-19 20:49 情肋 阅读(32) 评论(0) 推荐(0)
摘要: 3.类型转换 public class demo04 { public static void main(String[] args) { int i = 165; // 高到低————强制转换 // 低到高————自动转换 byte a = (byte) i; System.out.println 阅读全文
posted @ 2022-07-19 13:24 情肋 阅读(25) 评论(1) 推荐(0)