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