(int arr[], int i)
| 12 | } |
| 13 | //swap alternate elements of array. |
| 14 | public void swap(int arr[], int i){ |
| 15 | int temp = arr[i-1]; |
| 16 | arr[i-1] = arr[i]; |
| 17 | arr[i] = temp; |
| 18 | } |
| 19 | |
| 20 | public static void main(String args[]) |
| 21 | { |
no outgoing calls
no test coverage detected