since queue adds elements at the end and also stack ends at the end of data structure so push operation is as simple as add element to queue . time complexity : o 1 concode_field_sep Queue<Integer> queue concode_field_sep int pop concode_elem_sep void main
void function ( int arg0 ) { queue . add ( arg0 ) ; }