queue implementation in java using arraylist

Java
Queue<Integer> queue=new ArrayList<Integer>();
Source

Also in Java: