摘要: public class Main { // 主类 public static void main(String[] args) { // 程序入口 Student stu = new Student(); // 创建学生对象 stu.name = "李华"; // 姓名 stu.id = 2024 阅读全文
posted @ 2026-06-04 14:43 香蕉味的椰子树 阅读(5) 评论(0) 推荐(0)
摘要: public class Main { // 主类 public static void main(String[] args) { // 程序入口 Student stu = new Student(); // 创建学生对象 stu.name = "李华"; // 姓名 stu.id = 2024 阅读全文
posted @ 2026-06-04 14:39 香蕉味的椰子树 阅读(2) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class a1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (true){ System.ou 阅读全文
posted @ 2026-06-04 14:30 香蕉味的椰子树 阅读(3) 评论(0) 推荐(0)