Yes. Use e.g
if (stringname.compareTo(otherstringname) < 0)
{
// the word is "greater" than the other one, so e.g add it to its "right"
}
I used a BST like this as part of an english-to-french translator.
Moderator
Featured Poster
Reputation Points: 1800
Solved Threads: 575
Moderator
Offline 16,534 posts
since Apr 2005