deflorator1980

Untitled

Jan 11th, 2017
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. int[] x = {2, 3, 4, 5, 6, 0, 1};
  2. IntStream.range(0, x.length).forEach(s -> System.out.print(x[s] + " "));
  3. ArrayUtils.reverse(x);
  4. System.out.println();
  5. IntStream.range(0, x.length).forEach(s -> System.out.print(x[s] + " "));
Add Comment
Please, Sign In to add comment