public void displayResults(List<AcronymExpansion> results,String errorMessage){
  Log.d(TAG,"results = " + results);
  if (results == null || results.size() == 0)   Utils.showToast(this,errorMessage);
 else {
    Log.d(TAG,"displayResults() with number of acronyms = " + results.size());
    mAdapter.clear();
    mAdapter.addAll(results);
    mAdapter.notifyDataSetChanged();
  }
}

public void displayResults ( List < AcronymExpansion > results , String errorMessage ) { Log . d ( TAG , "results = " + results ) ; if ( results == null || results . size ( ) == 0 ) Utils . showToast ( this , errorMessage ) ; else { Log . d ( TAG , "displayResults() with number of acronyms = " + results . size ( ) ) ; mAdapter . clear ( ) ; mAdapter . addAll ( results ) ; mAdapter . notifyDataSetChanged ( ) ; } }
display the acronym expansions to the user .
