 |
How do I reverse an int array in Java? - Stack Overflow
below is the complete program to run in your machine. public class ReverseArray { public static void main(String[] args) { int arr[] = new int[] { 10,20,30,50,70 }; System.out.println("reversing an array:"); for(int i = 0; i < arr.length / 2; i++){ int ..
stackoverflow.com |
 |