public bool Associate(char nextChar) { if (currNode.ContainsKey(nextChar)) { step++; this.currNode = currNode.GetChildren(nextChar); if (currNode.IsWordEnd) { this.isOccurWord = true; } return(true); } else { return(false); } }