qqp question1: Is this the correct way to implement a stack using an arrayList<Integer> and a queue as an arrayList<Integer> in Java? question2: Which one is correct for declaring queue and stack in Java?