Skip to content

Instantly share code, notes, and snippets.

@NaotoKumagai
Created December 20, 2016 03:42
Show Gist options
  • Save NaotoKumagai/618a6dbe53b5bd83f42d4b8ebc2a52bf to your computer and use it in GitHub Desktop.
Save NaotoKumagai/618a6dbe53b5bd83f42d4b8ebc2a52bf to your computer and use it in GitHub Desktop.
day9:int[]を逆順で出力する
IntStream.of(arr)
.boxed()
.collect(Collectors.toCollection(LinkedList::new))
.descendingIterator()
.forEachRemaining(i -> System.out.print(i + " "));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment