摘要:
import java.util.*; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { String source = "34533"; String[] 阅读全文
摘要:
import java.util.ArrayList; public class Main { public static void main(String[] args) { Integer[] nums = new Integer[]{3, 5, 2, 8, 4}; // 差异值 》异或运算 ^ 阅读全文
摘要:
import java.util.Arrays; import java.util.Objects; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { In 阅读全文
摘要:
import java.util.ArrayList; import java.util.TreeMap; import java.util.stream.IntStream; public class Main { public static void main(String[] args) { 阅读全文
摘要:
import java.util.Comparator; import java.util.HashSet; import java.util.stream.IntStream; public class Main { public static void main(String[] args) { 阅读全文
摘要:
import java.util.*; import java.util.stream.Collectors; import java.util.stream.IntStream; public class Main { public static void main(String[] args) 阅读全文
摘要:
import java.util.*; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { String[] urls = {"news.qq.com", " 阅读全文
摘要:
import java.util.stream.IntStream; public class Main { public static void main(String[] args) { int[] lights = new int[]{50, 70, 20, 70}; int total = 阅读全文
摘要:
import java.util.ArrayDeque; import java.util.Objects; import java.util.stream.Collectors; public class Main { public static void main(String[] args) 阅读全文
摘要:
UnSafe类功能强大,可直接操作内存等,具体功能见下图 由于JDK并没有开放对UnSafe的获取端口,所以可通过如下方式进行获取 public static Unsafe getUnSafe() throws NoSuchFieldException, IllegalAccessException 阅读全文