SHARE
TWEET

Untitled

a guest Sep 20th, 2019 75 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top