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

public void addOptionToCheck ( String option ) { if ( optionsToCheck == null ) { optionsToCheck = new LinkedList < > ( ) ; } optionsToCheck . add ( option ) ; }
adds an option to check .
