how to use Arraylist with queue in java code example Example: queue implementation in java using arraylist Queue<Integer> queue=new ArrayList<Integer>();