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 m very glad to know and use this site. this is w
View Tutorial By: Rupinder at 2009-09-08 08:49:23
4. 29. It is not a deadlock. What will actually happe
View Tutorial By: Sasha at 2012-01-24 14:34:03
6. I have tried that but still getting the same error
View Tutorial By: pra at 2008-04-14 21:55:44
8. semicolon(*;) is missed in first line..con .close(
View Tutorial By: Reddymalla Babu Sircilla at 2013-02-22 09:01:29