摘要:
增强型for循环以及 break和continue的作用 增强型for循环 package com.kun.struct; public class ForDemo05 { public static void main(String[] args) { int[] numbers = {10, 2 阅读全文
posted @ 2025-11-05 16:36
Sea(kun)
阅读(9)
评论(0)
推荐(0)
摘要:
For循环和While循环练习 计算0到100之间的奇数和偶数的和 While package com.kun.struct; public class WhileDemo05 { public static void main(String[] args) { int i = 0; // 初始化变 阅读全文
posted @ 2025-11-05 12:19
Sea(kun)
阅读(8)
评论(0)
推荐(0)
摘要:
结构(2)If语句和For循环 If语句 package com.kun.struct; import java.util.Scanner; public class IfDemo01 { public static void main(String[] args) { Scanner scanne 阅读全文
posted @ 2025-11-05 11:53
Sea(kun)
阅读(5)
评论(0)
推荐(0)
摘要:
结构(1)While和DoWhile While package com.kun.struct; public class WhileDemo01 { public static void main(String[] args) { // 输出1到100 int i = 0; // 初始化变量i为0 阅读全文
posted @ 2025-11-05 11:46
Sea(kun)
阅读(5)
评论(0)
推荐(0)
浙公网安备 33010602011771号