Created
December 20, 2016 03:42
-
-
Save NaotoKumagai/618a6dbe53b5bd83f42d4b8ebc2a52bf to your computer and use it in GitHub Desktop.
day9:int[]を逆順で出力する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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