摘要: import java.util.*; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { String source = "34533"; String[] 阅读全文
posted @ 2023-08-14 00:25 手握钢叉的猹 阅读(10) 评论(0) 推荐(0) 编辑
摘要: import java.util.ArrayList; public class Main { public static void main(String[] args) { Integer[] nums = new Integer[]{3, 5, 2, 8, 4}; // 差异值 》异或运算 ^ 阅读全文
posted @ 2023-08-13 20:42 手握钢叉的猹 阅读(8) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays; import java.util.Objects; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { In 阅读全文
posted @ 2023-08-13 20:26 手握钢叉的猹 阅读(24) 评论(0) 推荐(0) 编辑
摘要: import java.util.ArrayList; import java.util.TreeMap; import java.util.stream.IntStream; public class Main { public static void main(String[] args) { 阅读全文
posted @ 2023-08-13 20:10 手握钢叉的猹 阅读(15) 评论(0) 推荐(0) 编辑
摘要: import java.util.Comparator; import java.util.HashSet; import java.util.stream.IntStream; public class Main { public static void main(String[] args) { 阅读全文
posted @ 2023-08-13 01:56 手握钢叉的猹 阅读(49) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; import java.util.stream.Collectors; import java.util.stream.IntStream; public class Main { public static void main(String[] args) 阅读全文
posted @ 2023-08-13 01:23 手握钢叉的猹 阅读(63) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { String[] urls = {"news.qq.com", " 阅读全文
posted @ 2023-08-12 23:42 手握钢叉的猹 阅读(52) 评论(0) 推荐(0) 编辑
摘要: import java.util.stream.IntStream; public class Main { public static void main(String[] args) { int[] lights = new int[]{50, 70, 20, 70}; int total = 阅读全文
posted @ 2023-08-12 22:26 手握钢叉的猹 阅读(67) 评论(0) 推荐(0) 编辑
摘要: import java.util.ArrayDeque; import java.util.Objects; import java.util.stream.Collectors; public class Main { public static void main(String[] args) 阅读全文
posted @ 2023-08-12 22:16 手握钢叉的猹 阅读(65) 评论(0) 推荐(0) 编辑
摘要: UnSafe类功能强大,可直接操作内存等,具体功能见下图 由于JDK并没有开放对UnSafe的获取端口,所以可通过如下方式进行获取 public static Unsafe getUnSafe() throws NoSuchFieldException, IllegalAccessException 阅读全文
posted @ 2021-05-12 23:45 手握钢叉的猹 阅读(250) 评论(0) 推荐(0) 编辑