Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Java programming transposes a given integer array, such as: source array, 1 2 3 4 5 6, 6 5 4 3 2 1 transposed array.
Java programming transposes a given integer array, such as: source array, 1 2 3 4 5 6, 6 5 4 3 2 1 transposed array.
for(int x = 0; x & ltdate.length/2; x++){

int temp = date[x];

date[x]= date[date . length- 1-x];

date[date . length- 1-x]= temp;

}