摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2021-04-10 09:12 加钱居士- 阅读(69) 评论(0) 推荐(0) 编辑
摘要: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2021-04-09 18:01 加钱居士- 阅读(123) 评论(0) 推荐(0) 编辑
摘要: <!-- 普通 --><?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchem 阅读全文
posted @ 2021-04-09 17:59 加钱居士- 阅读(246) 评论(0) 推荐(0) 编辑
摘要: public class ArrayListTest { public static void main(String[] args) { String[] arr = new String[]{"AA", "BB", "CC", "DD", "EE"}; // 数组的复制 String[] arr 阅读全文
posted @ 2021-02-06 21:32 加钱居士- 阅读(79) 评论(0) 推荐(0) 编辑
摘要: public class PascalTriangle { public static void main(String[] args) { int[][] pascalTriangle = new int[10][]; // 赋值 for (int i = 0; i < pascalTriangl 阅读全文
posted @ 2021-02-06 19:20 加钱居士- 阅读(46) 评论(0) 推荐(0) 编辑
摘要: public class PascalTriangle { public static void main(String[] args) { int[][] pascalTriangle = new int[10][]; // 赋值 for (int i = 0; i < pascalTriangl 阅读全文
posted @ 2021-02-06 17:14 加钱居士- 阅读(68) 评论(0) 推荐(0) 编辑
摘要: public class ArrayTest { // Java程序员招租舍友,联系方式见下文: public static void main(String[] args) { int[] arr1 = new int[]{8, 2, 1, 0, 3}; int[] arr2 = new int[ 阅读全文
posted @ 2021-02-06 16:22 加钱居士- 阅读(89) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { for (int i = 2; i <= 100; i++) { boolean flag = true; for (int j = 2; j < i; j++) { if (i % j == 0) { flag = 阅读全文
posted @ 2021-02-06 15:44 加钱居士- 阅读(83) 评论(0) 推荐(0) 编辑
摘要: // Node类/** * 蛇身,由一个个节点组成,将每个节点抽象为一个类 */public class Node { private int nodeX; private int nodeY; public Node(int nodeX, int nodeY) { this.nodeX = nod 阅读全文
posted @ 2021-02-06 15:20 加钱居士- 阅读(72) 评论(0) 推荐(0) 编辑
摘要: public class PerfectNumberTest { public static void main(String[] args) { // 1K以内完数因子之和 for (int i = 0; i < 1000; i++) { int perfectNumber = 0; // 重置 阅读全文
posted @ 2021-02-06 15:16 加钱居士- 阅读(103) 评论(0) 推荐(0) 编辑