Write Program in Java of array list that include a function of swap but it should swap
Fantastic news! We've Found the answer you've been seeking!
Question:
Write Program in Java of array list that include a function of swap but it should swap the elements in such a way that the complete array list elements should be swapped with their alternate positions. After swapping calculate the percentage of even and odd elements and display on screen
e.g.
input: 14,5,77,34,9,2,44,92
output: 92,44,2,9,34,77,5,14
Related Book For
Posted Date: