NEW HERE? USE "AFORUM20" TO GET GET 20 % OFF CLAIM OFFER

UK: +44 748 007-0908 USA: +1 917 810-5386
My Orders
Register
Order Now

Java question

  Modify the Book's Arraylist class to include the following methods: 1) Switch - switch the first and last elements of the list - so a list of A,B,C,D,E becomes E,B,C,D,A. 2) Swap - receives 2 unequal indexes and switches them so if the list is A,B,C,D,E then swap(2,5) gives a list of A,E,C,D,B.