@@ -0,0 +1,176 @@
+// http://codingbat.com/prob/p118044%0A%0Apublic int%5B%5D swapEnds(int%5B%5D nums) %7B%0A  int temp = nums%5B0%5D;%0A  nums%5B0%5D = nums%5Bnums.length-1%5D;%0A  nums%5Bnums.length-1%5D = temp;%0A  return nums;%0A%7D%0A

Create swapEnds.java