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

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!