指定栈的进栈顺序,输出所有可能的出栈顺序
public static void stackOut(int[] nums,int inNum,int outNum,LinkedList stack,ArrayList output) { if(inNum==nums.length&&outNum==nums.length) { System.out.println(output); num++; } else