摘要: 6.4课堂笔记 微头条控制台版: 1.User.java代码(增加showMenu方法) public class User { private String username; private String password; public User(String username, String 阅读全文
posted @ 2026-06-04 11:11 1542329403 阅读(7) 评论(0) 推荐(0)
摘要: 6.3 类的定义中要求实现的代码: public class Main { // 成员变量(描述特征) String brand; // 品牌 String color; // 颜色 double capacity; // 容量 boolean isOn; // 是否通电 // 成员方法(描述行为) 阅读全文
posted @ 2026-06-03 11:42 1542329403 阅读(6) 评论(0) 推荐(0)
摘要: 第一节课 6.1 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (true) 阅读全文
posted @ 2026-06-03 09:18 1542329403 阅读(5) 评论(0) 推荐(0)