@@ -0,0 +1,610 @@
+package com.dw.lib.test;%0A%0Apublic class PushRecursion %7B%0A%09public int%5B%5D reverseArray(int%5B%5D array) %7B%0A%09%09foo(array%5B0%5D,array,0);%0A%09%09return array;%0A%09%7D%0A%09%0A%09public void foo(int c, int%5B%5D array, int index) %7B%0A%09%09if(index == array.length - 1) %7B%0A%09%09%09array%5Barray.length - 1 - index%5D = c;%0A%09%09%7D%0A%09%09%0A%09%09foo(array%5Bindex+1%5D,array,index+1);%0A%09%09array%5Barray.length - 1 - index%5D = c;%0A%09%7D%0A%09%0A%09public static void print(String s) %7B%0A%09%09int%5B%5D array = %7B1,2,3,4,5%7D;%0A%09%09PushRecursion pushRecursion = new PushRecursion();%0A%09%09int%5B%5D t = pushRecursion.reverseArray(array);%0A%09%09%0A%09%09for(int i=0;i%3Ct.length;i++)%0A%09%09%09System.out.print(String.format(%22%25d%5Ct%22, t%5Bi%5D));%0A%09%7D%0A%7D%0A

add push recursion testing