Comment on Tutorial - compareTo( ) in Java By Mashoud



Comment Added by : Adam

Comment Added at : 2009-11-10 12:55:51

Comment on Tutorial : compareTo( ) in Java By Mashoud
Example:

String sOne = "hello there";
String sTwo = "hallo there";

What would my output be in this situation?

out.print(sOne.compareTo(sTwo));

and in this situation...

out.print(sTwo.compareTo(sOne));


View Tutorial



Related Tutorials

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

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. i will make to try for rms :)
View Tutorial          By: sebo at 2010-05-20 07:38:28

2. ... it is nice site coz 8 can help students lyk me
View Tutorial          By: mayflor at 2011-06-29 03:57:51

3. Nice Article, but these concepts are pretty confus
View Tutorial          By: Goldest at 2011-03-18 01:50:50

4. hi could u tell me how to download a file using se
View Tutorial          By: akki at 2013-02-19 05:52:03

5. oh u solved my one of the hardest problem through
View Tutorial          By: zehra at 2012-01-28 19:44:14

6. A very good demonstration o Vector!!
View Tutorial          By: Pankaj Kumar Mishra at 2010-12-09 01:35:06

7. hey hiii.
at last the progrma has be runnin

View Tutorial          By: jugal at 2009-02-20 08:22:31

8. hi, srinivas ... i too was having the same problem
View Tutorial          By: Ashish at 2009-04-07 06:57:31

9. I have got "time out at step 6". How can
View Tutorial          By: MCHON at 2008-10-05 12:36:42

10. If one can't use English grammar correctly and wit
View Tutorial          By: Java Man at 2011-12-09 06:04:14