上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 80 下一页
摘要: 犯的错 字符验证是否正确使用 :变量.equals("字符串") 键盘输入字符串 String 变量 = myScanner.next(); import java.util.Scanner; public class For02{ public static void main(String[] 阅读全文
posted @ 2025-04-25 11:55 胖豆芽 阅读(9) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class For02{ public static void main(String[] args){ //Scanner myScanner = new Scanner(System.in); System.out.println 阅读全文
posted @ 2025-04-25 11:41 胖豆芽 阅读(8) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class For02{ public static void main(String[] args){ //Scanner myScanner = new Scanner(System.in); System.out.println 阅读全文
posted @ 2025-04-25 11:15 胖豆芽 阅读(7) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class For02{ public static void main(String[] args){ //Scanner myScanner = new Scanner(System.in); System.out.println 阅读全文
posted @ 2025-04-25 10:41 胖豆芽 阅读(5) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class For02{ public static void main(String[] args){ //Scanner myScanner = new Scanner(System.in); System.out.println 阅读全文
posted @ 2025-04-25 08:50 胖豆芽 阅读(11) 评论(0) 推荐(0)
摘要: 犯错 System.out.println()自带回车功能 不需要回车需要使用System.out.print() import java.util.Scanner; public class For02{ public static void main(String[] args){ //Scan 阅读全文
posted @ 2025-04-24 16:33 胖豆芽 阅读(5) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class For02{ public static void main(String[] args){ Scanner myScanner = new Scanner(System.in); System.out.println(" 阅读全文
posted @ 2025-04-24 15:42 胖豆芽 阅读(8) 评论(0) 推荐(0)
摘要: 犯的错 1.定义 变量初始值的时候 仅能类型偷懒 变量的值必须要写 int sumnian = 0, sumban = 0, chengji = 0; 这样是对的 2.定义初始值的时候要捋清楚逻辑 从何时开始置为空呢 比如班级成绩就是没进入内循环时 置为0,保证每次内循环开始时 班级成绩都是从0开始 阅读全文
posted @ 2025-04-24 15:29 胖豆芽 阅读(6) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-04-24 14:07 胖豆芽 阅读(5) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-04-24 13:18 胖豆芽 阅读(4) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 80 下一页