A java exercise please! Write a static method named swapHavles that takes an ArrayList of integers…

A java exercise please!

Write a static method named swapHavles that takes an ArrayList of integers as a a parameter and returns a new ArrayList that has every element in the second half of the original ArrayList swapped with every element in the first half of the original ArrayList. Note: • You can assume that the ArrayList passed to this method as a parameter always contains an even number of elements and will always contain at least two elements. For example: Test Result [6, 7, 8, 9, 10, 1, 2, 3, 4, 5) ArrayList