code: private void chooseSampleSqlAndConf(BufferedReader br) throws IOException {
          while (true) {
              printInstruction("Which sample SQL schema would you like to use?");
              for (int i = 0; i < getSqlConfInfos().size(); i++) {
                  System.out.println(" " + (i + 1) + ") " + getSqlConfInfos().get(i).getName());
                  System.out.println("    " + getSqlConfInfos().get(i).getDescription());
                  if (getSqlConfInfos().get(i).getDescription2() != null) {
                      System.out.println("    " + getSqlConfInfos().get(i).getDescription2());
                  }
                  System.out.println("");
              }
  
              String choice = br.readLine();
              if (isBlank(choice)) {
                  continue;
              } else {
                  try {
                      sqlConfName = getSqlConfInfos().get(Integer.parseInt(choice) - 1).getName();
                      System.out.println("OK, using: " + sqlConfName);
                  } catch (Exception e) {
                      System.out.println("");
                      continue;
                  }
              }
              break;
          }
      }
docs: Interactively ask the user which sql conf should be used.