void function ( ArrayList < String > arg0 , ArrayList < Integer > arg1 ) { ArrayList < Map . Entry < String , Int >> loc0 = new ArrayList < Map . Entry < String , Int >> ( _wordFrequency . entrySet ( ) ) ; Collections . sort ( loc0 , new ComparatorFrequency ( ) ) ; for ( Map . Entry < String , Int > loc1 : loc0 ) { arg0 . add ( loc1 . getKey ( ) ) ; arg1 . add ( loc1 . getValue ( ) . value ) ; } }
stores words and their corresponding frequencies in parallel array lists parameters . the frequencies are sorted from low to high . concode_field_sep Comparator<Map.Entry<String,Int>> SORT_ALPHABETICALLY concode_elem_sep int _totalWords concode_elem_sep Set<String> _ignoreWords concode_elem_sep Comparator<Map.Entry<String,Int>> SORT_BY_FREQUENCY concode_elem_sep Map<String,Int> _wordFrequency concode_field_sep void countWords concode_elem_sep void countWords concode_elem_sep int getWordCount concode_elem_sep void ignore concode_elem_sep void ignore concode_elem_sep int[] getFrequencies concode_elem_sep int getEntryCount concode_elem_sep String[] getWords