chapter_004/src/main/java/ru/job4j/trie/WordIndexUseMyTrie.java
/**
     * Write words in the table.
     *
     * @param filename - file with of the words.
     */
Write words in the table.
@param filename - file with of the words.
Write words in the table . @param filename - file with of the words .
public void loadFile(String filename) {
        String[] line = filename.split(" ");
        int count = 1;
        int index = 0;
        for (String str : line) {
            this.dictionary.add(str, count++, index);
            index = index + str.length() + 1;
        }
    }
public void loadFile ( String filename ) { String [ ] line = filename . split ( " " ) ; int count = 1 ; int index = 0 ; for ( String str : line ) { this . dictionary . add ( str , count ++ , index ) ; index = index + str . length ( ) + 1 ; } }
Write words in the table.
Write words in the table .