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
6. Thanks to the author, it was really a good tutoria
View Tutorial By: Ashok Kumar at 2010-04-29 05:54:47
9. Controlling Page Navigation in JSF - Static and Dy
View Tutorial By: chip at 2010-10-07 05:16:14
10. Of course you can use this in a web application. A
View Tutorial By: Ramlak at 2008-09-17 08:24:21