2022年6月8日
摘要:
Spring Core 框架最基础的部分,提供了IOC容器,Bean管理 Spring Context 基于bean,提供上下文信息,扩展相互JNDI、EJB、电子邮件、国际化、校验和调度等功能 Spring Dao 提供了JDBC的抽象层,他可以消除冗长的JDBC编码和解析数据库厂商特有的错误代码
阅读全文
posted @ 2022-06-08 09:08
夜灬瞬
阅读(48)
推荐(0)
2021年12月21日
摘要:
给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 target 的那 两个 整数,并返回它们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素在答案里不能重复出现。 来源:力扣(LeetCode)链接:https://leetcode-
阅读全文
posted @ 2021-12-21 14:03
夜灬瞬
阅读(34)
推荐(0)
2021年12月17日
摘要:
package com.a;import java.util.concurrent.Callable;/** * @author 夜灬瞬 * @date 2021年12月17日 14:43 */public class Test124 implements Callable<Integer> { s
阅读全文
posted @ 2021-12-17 15:00
夜灬瞬
阅读(46)
推荐(0)
摘要:
package com.a;/** * @author 夜灬瞬 * @date 2021年12月17日 14:30 */public class Test123 implements Runnable { Integer money = 2000; @Override public void run
阅读全文
posted @ 2021-12-17 14:55
夜灬瞬
阅读(28)
推荐(0)
摘要:
package com.a;/** * @author 夜灬瞬 * @date 2021年12月17日 14:28 */public class Test122 extends Thread { static Integer money = 2000; public Test122(String n
阅读全文
posted @ 2021-12-17 14:55
夜灬瞬
阅读(37)
推荐(0)
摘要:
package com.a;/** * @author 夜灬瞬 * @date 2021年12月17日 14:21 */public class Test120 extends Thread { static Integer money = 2000; public Test120(String n
阅读全文
posted @ 2021-12-17 14:50
夜灬瞬
阅读(28)
推荐(0)
摘要:
@Testpublic void test1() throws ExecutionException, InterruptedException { //创建线城实例 MaxNum m = new MaxNum(3, 5, 7); //创建FutrueTask实例 FutureTask<Intege
阅读全文
posted @ 2021-12-17 09:33
夜灬瞬
阅读(55)
推荐(0)
摘要:
@Testpublic void test() { TR tr = new TR("兔子"); TR tr1 = new TR("乌龟"); tr.start(); tr1.start();}class TR extends Thread { public TR(String name) { sup
阅读全文
posted @ 2021-12-17 09:28
夜灬瞬
阅读(40)
推荐(0)
2021年12月15日
摘要:
package com.a;import java.util.ArrayList;import java.util.List;/** * @author 夜灬瞬 * @date 2021年12月15日 14:17 */public class Test93 { public static void
阅读全文
posted @ 2021-12-15 14:30
夜灬瞬
阅读(86)
推荐(0)
摘要:
古典问题:不死神兔( public static void main(String[] args) { System.out.println(rabite(10)*2);;}private static int rabite(int month) { if (month == 1 || month
阅读全文
posted @ 2021-12-15 10:31
夜灬瞬
阅读(42)
推荐(0)