how to add to a queue java code example Example: what is queue in java Quque: accepts duplicates, does not have index, First in first out order