摘要:
public class Code { public static void main(String[] args) { IntStreams.range(1,4) .forEach(System.out::println); // 1 2 3 Arrays.stream(new int[] {1, 阅读全文
posted @ 2020-12-30 03:47
Zhentiw
阅读(79)
评论(0)
推荐(0)
摘要:
public class Code { public static void main(String[] args) { Arrays.asList("red", "green", "blue") .stream() .sorted() .findFirst() .ifPresent(System. 阅读全文
posted @ 2020-12-30 03:43
Zhentiw
阅读(72)
评论(0)
推荐(0)
摘要:
public class Code { public static void main(String[] args) { List<String> names = Arrays.asList("Paul", "Jane", "Sam", "Michaela"); // Way to sort pri 阅读全文
posted @ 2020-12-30 03:32
Zhentiw
阅读(93)
评论(0)
推荐(0)

浙公网安备 33010602011771号