一个栈实现另一个栈的排序

 public static void sortStack(Stack stack){
     Stack help = new Stack<>();
         while(!stack.isEmpty()){
             Integer curr = stack.pop();
             while(!help.isEmpty()&&help.peek()

你可能感兴趣的:(一个栈实现另一个栈的排序)