public Selector printOptions(){
  if (header != null) {
    out.println(header);
  }
  for (int i=0; i < options.size(); i++) {
    out.println((i + 1) + ":" + formatter.apply(options.get(i)));
  }
  if (footer != null) {
    out.println(footer);
  }
  return this;
}

public Selector printOptions ( ) { if ( header != null ) { out . println ( header ) ; } for ( int i = 0 ; i < options . size ( ) ; i ++ ) { out . println ( ( i + 1 ) + ":" + formatter . apply ( options . get ( i ) ) ) ; } if ( footer != null ) { out . println ( footer ) ; } return this ; }
prints options . first option is 1 .
