• + 1 comment
    Stack<Integer> st1 = new Stack<>();
        Stack<Integer> st2 = new Stack<>();
        for(int i=0; i<a.size(); i++){
          st1.push(a.get(i));
        }
        for(int i=0; i<b.size(); i++){
          st2.push(b.get(i));
        }