code: public static String[] convertListTokenToArrayStrings(
        final List<Token> tokenizedSentence) {
      final List<String> tokensList = new ArrayList<>();
      for (final Token token : tokenizedSentence) {
        tokensList.add(token.getTokenValue());
      }
      return tokensList.toArray(new String[tokensList.size()]);
    }
docs: Convert a list of token objects (e.g. a tokenized sentence) into an array
  containing the token strings.
  
  @param tokenizedSentence
  the list of token objects
  @return the array of token strings