question: public void populateEditText ( ArrayList < String > matches ) { toggleSearch ( ) ; String text = "" ; for ( int x = 0 ; x < matches . size ( ) ; x ++ ) { text = text + matches . get ( x ) + " " ; } text = text . trim ( ) ; setSearchString ( text ) ; search ( text ) ; }
target:  Populate the searchbox with words, in an arraylist. Used by the voice input