public boolean contains(String suffix){
  boolean result;
  Character c;
  String newSuffix;
  TrieNode child;
  c=suffix.charAt(0);
  newSuffix=suffix.substring(1);
  child=m_Children.get(c);
  if (child == null) {
    result=false;
  }
 else   if (newSuffix.length() == 0) {
    result=true;
  }
 else {
    result=child.contains(newSuffix);
  }
  return result;
}

public boolean contains ( String suffix ) { boolean result ; Character c ; String newSuffix ; TrieNode child ; c = suffix . charAt ( 0 ) ; newSuffix = suffix . substring ( 1 ) ; child = m_Children . get ( c ) ; if ( child == null ) { result = false ; } else if ( newSuffix . length ( ) == 0 ) { result = true ; } else { result = child . contains ( newSuffix ) ; } return result ; }
checks whether a suffix can be found in its children
