| | |
How to use Binary Search Tree with String? Is there any ready code?
![]() |
-7
#3 24 Days Ago
Yes. Use e.g
I used a BST like this as part of an english-to-french translator.
Java Syntax (Toggle Plain Text)
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.
If i am helpful, please give me reputation points.
•
•
Join Date: Jun 2008
Posts: 130
Reputation:
Solved Threads: 2
0
#4 24 Days Ago
•
•
•
•
Yes. Use e.g
Java Syntax (Toggle Plain Text)
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.
But, I really didn't got it! and Will this will work with array of strings?
For example if I have an array of strings, will this method sort the array to a BST?
![]() |
Similar Threads
- Create code for Binary Search Tree using compareTo method using I/O (Java)
- Binary Search Tree (C++)
- Help explain successor binary search tree code thanks (Java)
- Binary Search tree help in Java 98% complete (Java)
- Binary search tree help please (C++)
- Binary Search Tree within in BT ? (C++)
- Output Binary Search Tree to file help (C++)
- Pascal, Strings in A Binary Search tree (Pascal and Delphi)
- Help implementing a binary search tree in Java (Java)
- Help with binary search tree insertion (C++)
Other Threads in the Java Forum
- Previous Thread: Casting of int[] to Object[]
- Next Thread: Error [for the type QPlainTextEdit]
| Thread Tools | Search this Thread |
2dgraphics account android api apple applet application arguments array arrays automation banking binary binarytree bluetooth chat chatprogramusingobjects class client code color component count database derby design eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui homework html ide if_statement image integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel jtextfield julia keyword linux list macintosh map method methods midlethttpconnection mobile netbeans newbie nullpointerexception object open-source os problem producer program programming project projectideas property read recursion reference replaysolutions ria scanner search server set size sms sort sourcelabs splash sql sqlite stop string swing threads transforms tree ui unicode validation windows






