private ArrayList<SpinnerLanguageElement> createSpinnerLanguages(int avoidLanguage){
  ArrayList<SpinnerLanguageElement> result=new ArrayList<SpinnerLanguageElement>();
  List<String> languages=mSessionOptions.allLanguages();
  for (int i=0; i < languages.size(); ++i) {
    if (i != avoidLanguage) {
      result.add(new SpinnerLanguageElement(languages.get(i),i));
    }
  }
  return result;
}

private ArrayList < SpinnerLanguageElement > createSpinnerLanguages ( int avoidLanguage ) { ArrayList < SpinnerLanguageElement > result = new ArrayList < SpinnerLanguageElement > ( ) ; List < String > languages = mSessionOptions . allLanguages ( ) ; for ( int i = 0 ; i < languages . size ( ) ; ++ i ) { if ( i != avoidLanguage ) { result . add ( new SpinnerLanguageElement ( languages . get ( i ) , i ) ) ; } } return result ; }
determines what languages will be shown in the spinner .
