import java.util.*; public class Solution { public boolean IsPopOrder(int [] pushA, int [] popA) { Stack<Integer> stack = new Stack<>(); int flag = 0; for (int i = 0; i < pushA.length; i++) { //flag < pushA.length用来限制当pushA添加完后只能执行出栈 ...