Comment on Tutorial - compareTo( ) in Java By Mashoud
Comment Added by : hemn
Comment Added at : 2010-04-17 06:02:00
Comment on Tutorial : compareTo( ) in Java By Mashoud
Very nice tutorial. But please I have some problems with this function. here is my problem:
I have created a dictionary that uses text files as database. The text files are encoded in UTF-8 format. I read them with InputStreamReader(is, "UTF-8");
and save them in an array of string. Nothing problem till here.
But the problem will start when I want to compare individual elements with the text I want. The loop passes through the correct one but using String.compareTo() will not stop it.
I have used different methods to decode both texts but nothing worked.
Any help will be appreciated.
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
3. i'ma beginer in this android devopment tutorial ca
View Tutorial By: vijay at 2015-08-18 05:16:54
4. Travis could you share steps to configure correctl
View Tutorial By: Shailesh S. at 2015-09-09 09:36:20
6. Very good. but why i can search data then report v
View Tutorial By: ARMAN AHMED at 2015-04-27 13:18:04
8. hi .the program does run thank you for that ,i nee
View Tutorial By: mazen at 2008-09-09 04:55:16