Guest User

Untitled

a guest
Sep 20th, 2019
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void main(String[] args) {
  2. System.out.println("Hello Java");
  3. long startTime = System.currentTimeMillis();
  4. List<Integer> collect = IntStream.range(1, 1000000).boxed().collect(Collectors.toList());
  5. collect.stream().forEach(System.out::println);
  6. long endTime = System.currentTimeMillis();
  7. System.out.println("time taken " + (endTime - startTime));
  8. }
RAW Paste Data