@@ -0,0 +1,232 @@
+// http://codingbat.com/prob/p146256%0A%0Apublic int%5B%5D maxEnd3(int%5B%5D nums) %7B%0A  int max = (nums%5B0%5D %3E nums%5Bnums.length-1%5D) ? nums%5B0%5D : nums%5Bnums.length-1%5D;%0A  for (int i = 0; i %3C nums.length; ++i) %7B%0A    nums%5Bi%5D = max;%0A  %7D%0A  return nums;%0A%7D%0A

Create maxEnd3.java