摘要: package struct; public class TextDemo { public static void main(String[] args) { text(); text2(); } public static void text() { //打印三角形 5行 for (int i 阅读全文
posted @ 2021-07-29 09:59 阿向向 阅读(115) 评论(0) 推荐(0) 编辑
摘要: package struct; /* 质数 101 150 的所有质数 */ public class Demo11 { public static void main(String[] args) { outer: for (int i = 101; i < 150; i++) { for (in 阅读全文
posted @ 2021-07-29 09:57 阿向向 阅读(172) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo09 { public static void main(String[] args) { text(); } public static void text() { int[] nums = {10, 20, 30, 40, 50, 阅读全文
posted @ 2021-07-29 09:55 阿向向 阅读(66) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo08 { public static void main(String[] args) { for (int j = 1; j <= 9; j++) { for (int i = 1; i <= j; i++) { System.ou 阅读全文
posted @ 2021-07-29 09:49 阿向向 阅读(145) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo07 { public static void main(String[] args) { int a = 1; int count=0; while (a <= 1000) { if (a % 5 == 0) { System.ou 阅读全文
posted @ 2021-07-29 09:48 阿向向 阅读(335) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo06 { public static void main(String[] args) { for (int i = 1; i <= 1000; i++) { if (i % 5 == 0) { System.out.print(i 阅读全文
posted @ 2021-07-29 09:47 阿向向 阅读(351) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo05 { public static void main(String[] args) { int oddSum = 0; int evenSum = 0; for (int i = 0; i <= 100; i++) { if (i 阅读全文
posted @ 2021-07-29 09:45 阿向向 阅读(798) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo04 { public static void main(String[] args) { text(); text2(); text3(); } public static void text() { int i = 0; int 阅读全文
posted @ 2021-07-29 09:43 阿向向 阅读(47) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo03 { public static void main(String[] args) { text(); System.out.println(" "); text2(); } public static void text() { 阅读全文
posted @ 2021-07-29 09:41 阿向向 阅读(618) 评论(0) 推荐(0) 编辑
摘要: package struct; import java.util.Scanner; public class Demo02 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Sys 阅读全文
posted @ 2021-07-29 09:38 阿向向 阅读(27) 评论(0) 推荐(0) 编辑
摘要: package struct; import java.util.Scanner; public class Demo01 { final static Scanner scanner = new Scanner(System.in); public static void main(String[ 阅读全文
posted @ 2021-07-29 09:37 阿向向 阅读(21) 评论(0) 推荐(0) 编辑
摘要: package scanner; import java.util.Scanner; public class Demo03{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Sys 阅读全文
posted @ 2021-07-29 09:35 阿向向 阅读(24) 评论(0) 推荐(0) 编辑
摘要: package scanner; import java.util.Scanner; public class Demo02 { final static Scanner scanner = new Scanner(System.in); public static void main(String 阅读全文
posted @ 2021-07-29 09:34 阿向向 阅读(28) 评论(0) 推荐(0) 编辑
摘要: package scanner; import java.util.Scanner; public class Demo01 { public static void main(String[] args) { scanner(); scanner2(); scanner3(); } public 阅读全文
posted @ 2021-07-29 09:32 阿向向 阅读(26) 评论(0) 推荐(0) 编辑