会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
爱新觉罗LQ
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
22
23
24
25
26
27
28
29
30
···
37
下一页
2023年10月20日
利用 Stream()将 TreeSet转成数组,方便利用下标取出对应元素
摘要: 利用 Stream 流将 TreeSet 转成数组 Integer[] arr = set.stream().toArray(Integer[]::new);
阅读全文
posted @ 2023-10-20 11:23 爱新觉罗LQ
阅读(76)
评论(0)
推荐(0)
2023年10月18日
整型数组逆序
摘要: 整型数组逆序 由于 int型数组没有实现 comparator 接口,所以不支持逆序排序,所以我们建数组的时候就建成 Integer型就好了 Scanner in = new Scanner(System.in); int target = Integer.parseInt(in.nextLine(
阅读全文
posted @ 2023-10-18 11:49 爱新觉罗LQ
阅读(21)
评论(0)
推荐(0)
2023年10月17日
List<Integer> list 删除指定元素
摘要: List list 删除指定元素 List<Integer> list1 = new ArrayList<>(); list1.add(1); list1.add(2); list1.add(4); list1.add(3); list1.remove((Integer)4); System.out
阅读全文
posted @ 2023-10-17 23:34 爱新觉罗LQ
阅读(93)
评论(0)
推荐(0)
无脑
摘要: 无脑 检查是否存在满足条件的数字组合 import java.util.Scanner; import java.util.*; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(Str
阅读全文
posted @ 2023-10-17 20:06 爱新觉罗LQ
阅读(55)
评论(0)
推荐(0)
贪心
摘要: 贪心 1个维度【生活常识】 135. 分发糖果 class Solution { public boolean lemonadeChange(int[] bills) { int[] arr = new int[2]; for (int bill : bills) { if (bill == 5){
阅读全文
posted @ 2023-10-17 12:55 爱新觉罗LQ
阅读(16)
评论(0)
推荐(0)
2023年10月16日
mybatis项目启动报错:reader entry: ���� = v
摘要: mybatis项目启动报错:reader entry: ���� = v https://blog.51cto.com/lianghecai/7702720 解决方式: <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-vfs</
阅读全文
posted @ 2023-10-16 16:10 爱新觉罗LQ
阅读(37)
评论(0)
推荐(0)
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation
摘要: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation 解决方式 <dependency> <grou
阅读全文
posted @ 2023-10-16 16:08 爱新觉罗LQ
阅读(46)
评论(0)
推荐(0)
Mybatis 虚假爆红
摘要: Mybatis 虚假爆红 代码正常运行,但是报错:cannot resolve symbol "XXX" 解决方式:重启插件
阅读全文
posted @ 2023-10-16 15:38 爱新觉罗LQ
阅读(33)
评论(0)
推荐(0)
测试类中的 init() 方法【前有 @Before 注解】
摘要: 测试类中的 init() 方法【前有 @Before 注解】 package com.llq.mapper; public class MonsterMapperTest { // 属性 private SqlSession sqlSession; private MonsterMapper mon
阅读全文
posted @ 2023-10-16 13:20 爱新觉罗LQ
阅读(55)
评论(0)
推荐(0)
清空StringBuilder
摘要: 清空StringBuilder sb.setLength(0);
阅读全文
posted @ 2023-10-16 13:19 爱新觉罗LQ
阅读(23)
评论(0)
推荐(0)
上一页
1
···
22
23
24
25
26
27
28
29
30
···
37
下一页
公告