unit tests the queue data type . concode_field_sep Node<Item> next concode_elem_sep Item item concode_elem_sep Node<Item> current concode_elem_sep Node<Item> last concode_elem_sep Node<Item> first concode_elem_sep int n concode_field_sep Item next concode_elem_sep void enqueue concode_elem_sep Iterator<Item> iterator concode_elem_sep int size concode_elem_sep Item dequeue concode_elem_sep boolean isEmpty concode_elem_sep String toString concode_elem_sep boolean hasNext concode_elem_sep void remove concode_elem_sep Item peek
void function ( String [ ] arg0 ) { Queue < String > loc0 = new Queue < String > ( ) ; while ( ! StdIn . isEmpty ( ) ) { String loc1 = StdIn . readString ( ) ; if ( ! loc1 . equals ( "srini_string" ) ) loc0 . enqueue ( loc1 ) ; else if ( ! loc0 . isEmpty ( ) ) StdOut . print ( loc0 . dequeue ( ) + "srini_string" ) ; } StdOut . println ( "srini_string" + loc0 . size ( ) + "srini_string" ) ; }