@@ -0,0 +1,213 @@
+public int%5B%5D maxEnd3(int%5B%5D nums) %7B%0A  int first = nums%5B0%5D;%0A  int second = nums%5Bnums.length-1%5D;%0A  if (first %3E second) %7B%0A    return new int%5B%5D %7Bfirst, first, first%7D;%0A  %7D%0A  return new int%5B%5D %7Bsecond, second, second%7D;%0A%7D%0A

Create maxEnd3.java