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