Item function ( int arg0 ) { if ( arg0 >= size ) { return null ; } else { QueueNode < Item > loc0 = head ; for ( ; arg0 > 0 ; arg0 -- ) { loc0 = loc0 . next ; } return loc0 . item ; } }
nth returns the nth object in the catenablequeue . items in the queue are numbered from 0 . returns null if there is no nth item . concode_field_sep QueueNode<Item> head concode_elem_sep int size concode_elem_sep QueueNode<Item> tail concode_field_sep void enqueue concode_elem_sep int size concode_elem_sep Item dequeue concode_elem_sep boolean isEmpty concode_elem_sep String toString concode_elem_sep Item front concode_elem_sep void append