上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 36 下一页
摘要: 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 阅读(87) 评论(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 阅读(49) 评论(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 阅读(11) 评论(0) 推荐(0)
摘要: 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 阅读(30) 评论(0) 推荐(0)
摘要: 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 阅读(39) 评论(0) 推荐(0)
摘要: Mybatis 虚假爆红 代码正常运行,但是报错:cannot resolve symbol "XXX" 解决方式:重启插件 阅读全文
posted @ 2023-10-16 15:38 爱新觉罗LQ 阅读(27) 评论(0) 推荐(0)
摘要: 测试类中的 init() 方法【前有 @Before 注解】 package com.llq.mapper; public class MonsterMapperTest { // 属性 private SqlSession sqlSession; private MonsterMapper mon 阅读全文
posted @ 2023-10-16 13:20 爱新觉罗LQ 阅读(46) 评论(0) 推荐(0)
摘要: 清空StringBuilder sb.setLength(0); 阅读全文
posted @ 2023-10-16 13:19 爱新觉罗LQ 阅读(22) 评论(0) 推荐(0)
摘要: 栈 329. 仿 LISP 运算 import java.util.Scanner; import java.util.*; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(Strin 阅读全文
posted @ 2023-10-14 12:09 爱新觉罗LQ 阅读(27) 评论(0) 推荐(0)
摘要: 复制一个字符串多次 String repeat = temp.toString().repeat(count); 394. 字符串解码 核心思路: 加入最后一个 ],在弹出时候 先收集括号内所有的字母 弹出 [ 收集数字 class Solution { public String decodeSt 阅读全文
posted @ 2023-10-14 00:09 爱新觉罗LQ 阅读(34) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 36 下一页