public void addOptionToSelect(String option){
  if (optionsToSelect == null) {
    optionsToSelect=new LinkedList<>();
  }
  optionsToSelect.add(option);
}

public void addOptionToSelect ( String option ) { if ( optionsToSelect == null ) { optionsToSelect = new LinkedList < > ( ) ; } optionsToSelect . add ( option ) ; }
adds an option to select .
