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
1. i am getting a error when try this sms application
View Tutorial By: Prabhash at 2009-06-03 06:45:26
2. it is very good for best practice of basics.......
View Tutorial By: sushil ghimire at 2015-03-01 13:27:57
5. thanks , but i want it some thing like fibonici se
View Tutorial By: Arpit Agrawal at 2015-01-04 18:34:41
6. Excellent work mate! works like a charm! Lifesaver
View Tutorial By: jmcg at 2015-01-29 02:31:56
10. Hi... I used this code.But I am troubling that the
View Tutorial By: Sandip Gurule at 2013-10-14 13:34:49