随笔分类 -  java

上一页 1 ··· 4 5 6 7 8 9 下一页
对java学习,及资料; 包含javaSE、javaWEB、javaEE、mybatis、spring、springMVC、springCloud
摘要:package array; /** * 数组的三种初始化 */ public class Demo02 { public static void main(String[] args) { test(); test2(); } public static void test2() { int[] 阅读全文
posted @ 2021-07-30 08:30 阿向向 阅读(80) 评论(0) 推荐(0)
摘要:package array; public class Demo01 { public static void main(String[] args) { test(); test3(); } public static void test() { int[] num1;//定义 声明数组 num1 阅读全文
posted @ 2021-07-30 08:29 阿向向 阅读(33) 评论(0) 推荐(0)
摘要:package method; /* 可变参数; 不定项;‘ */ public class Demo03 { public static void main(String[] args) { Demo03 demo03 = new Demo03(); demo03.test(1,2,3,4,7,5 阅读全文
posted @ 2021-07-30 08:28 阿向向 阅读(51) 评论(0) 推荐(0)
摘要:package method; /** * 阶乘 * <p> * <p> * 1! 1 * 2! 2*1 * 3! 3*2*1 * 5! 5*4*3*2*1 */ public class Demo06 { public static void main(String[] args) { Syste 阅读全文
posted @ 2021-07-30 08:26 阿向向 阅读(109) 评论(0) 推荐(0)
摘要:package method; public class Demo04 { public static void main(String[] args) { Demo04 demo04 = new Demo04(); demo04.printMax(456,454,4654.4,6.454,6544 阅读全文
posted @ 2021-07-30 08:23 阿向向 阅读(94) 评论(0) 推荐(0)
摘要:package method; public class Demo01 { public static void main(String[] args) { // 实参 int sum = add(1, 4); System.out.println(sum);//5 // int max = max 阅读全文
posted @ 2021-07-30 08:21 阿向向 阅读(14) 评论(0) 推荐(0)
摘要: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 阿向向 阅读(139) 评论(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 阿向向 阅读(196) 评论(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 阿向向 阅读(74) 评论(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 阿向向 阅读(156) 评论(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 阿向向 阅读(356) 评论(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 阿向向 阅读(400) 评论(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 阿向向 阅读(943) 评论(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 阿向向 阅读(56) 评论(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 阿向向 阅读(672) 评论(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 阿向向 阅读(34) 评论(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 阿向向 阅读(30) 评论(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 阿向向 阅读(31) 评论(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 阿向向 阅读(36) 评论(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 阿向向 阅读(31) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 下一页