List list = Arrays.stream(ints).boxed().collect(Collectors.toList());. 哪個應該具有與第一個大致相同的性能。 請注意,對於如此小的陣列,不會有任何顯著差異。
確定! 回上一頁