How we add three stack in list ?
https://github.com/mertinal/StackExample/blob/master/src/stackexample/Main.java
or
Download project with git and open project in Netbeans
We can easly add Stacks into list with ArrayList in java. Stack type array list :
ArrayList<Stack> stacks = new ArrayList<Stack>();
Adding Stack object into ArrayList :
stacks.add(new Stack<Integer>());
stacks.add(new Stack<Integer>());
stacks.add(new Stack<Integer>());