@@ -0,0 +1,134 @@
+public int sum2(int%5B%5D nums) %7B%0A  if (nums.length == 0) return 0;%0A  if (nums.length == 1) return nums%5B0%5D;%0A  return nums%5B0%5D + nums%5B1%5D;%0A%7D%0A

Create sum2.java