摘要: Spring注解开发 注册组件 @Configuration中配置@Bean注册组件 实体类 public class User { private int id; private String name; @Override public String toString() { return "U 阅读全文
posted @ 2022-04-06 21:23 CoderCatIce 阅读(17) 评论(0) 推荐(0) 编辑
摘要: java实现hashTable 节点类 // 链表的节点 class Node { public int id; public String name; public Node pre; public Node next; @Override public String toString() { r 阅读全文
posted @ 2022-04-06 17:03 CoderCatIce 阅读(115) 评论(0) 推荐(0) 编辑
摘要: java常用查找算法 线性查找 /** * 找到一个就返回 * @param arr 数组 * @param value 需要找的数 * @return 找的数的下标,没找到为-1 */ public static int seqSearch(int[] arr, int value) { for 阅读全文
posted @ 2022-04-06 15:20 CoderCatIce 阅读(75) 评论(0) 推荐(0) 编辑