package test;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;
/**
* @Author: xinjingjie
* @Date:2021/5/28 9:10
**/
public class ListDemo {
public static void main(String[] args) throws InterruptedException {
List<Integer> numbers = new ArrayList<>();
new Random().ints().limit(2000).forEach(numbers ::add);
Integer[] integers1=numbers.toArray(new Integer[0]);
Integer[] integers2=numbers.toArray(new Integer[0]);
//可见返回的是不同的
System.out.println
快速排序比stream.sorted()快
最新推荐文章于 2024-03-30 15:53:14 发布