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
hi,
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.
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. how to connect the database in servelet use to sta
View Tutorial By: sudhir singh tomar at 2011-04-28 03:10:34
2. Can anybody tell the steps to go ahead with the ex
View Tutorial By: shikha at 2009-11-03 10:42:34
3. i need jsp code for free sms send.
if anybo
View Tutorial By: Harish at 2008-10-30 03:20:31
4. This matter is really too good.
View Tutorial By: Ashwin perti at 2009-07-08 04:43:55
5. nice article..
View Tutorial By: yummy at 2010-01-05 21:18:35
6. Thanks for the solution. I must say however that t
View Tutorial By: Pierre at 2009-11-19 20:16:35
7. public class Overload2 {
View Tutorial By: ITMIT at 2011-06-05 19:16:46
8. What is AWS?
View Tutorial By: Toja at 2013-01-22 10:36:45
9. hi how ru
anybody tell me that how to print
View Tutorial By: imran at 2010-12-10 00:34:51
10. it would be very helpful if you demonstrated how t
View Tutorial By: newcoder at 2011-10-24 17:40:25