Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Character Comparison Example

In this section, you will learn how to compare characters in Java. The java.lang package provides a method for comparing two case sensitive strings.

Tutorial Details:

The compareTo() method compares two strings on the basis of Unicode of each character of the given strings. This method returns integer type value. If it will return '0' it means the given string is equal otherwise not equal.


 

Rate Tutorial:
http://www.roseindia.net/java/beginners/CharComparation.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Character Comparison Example

View Tutorial:
Character Comparison Example

Related Tutorials:

Results of first-ever JVM server benchmark revealed - JavaWorld - December 1997
Results of first-ever JVM server benchmark revealed - JavaWorld - December 1997
 
Reading textual data: Fun with streams - JavaWorld - April 1999
Reading textual data: Fun with streams - JavaWorld - April 1999
 
StringBuffer versus String - JavaWorld March 2000
StringBuffer versus String - JavaWorld March 2000
 
Plant your data in a ternary search tree - JavaWorld February 2001
Plant your data in a ternary search tree - JavaWorld February 2001
 
Matchmaking with regular expressions - JavaWorld July 2001
Matchmaking with regular expressions - JavaWorld July 2001
 
Accelerate your RMI programming
Accelerate your RMI programming
 
XML documents on the run, Part 1
XML documents on the run, Part 1
 
JavaWorld article
JavaWorld article
 
Interesting informations
Interesting informations
 
Java's character and assorted string classes support text-processing
Java's character and assorted string classes support text-processing
 
Sort it out
Sort it out
 
Use select for high-speed networking
Use select for high-speed networking
 
Datastructures and algorithms, Part 1
Datastructures and algorithms, Part 1
 
Sizeof for Java
Sizeof for Java
 
SQL Uniform
SQL Uniform is a general interface (GUI), a helper application to relational databases of various types regarding query, maintenance, data comparison, export (convert).
 
JSP Tags
JSP tags do not use <%, but just the < character. A JSP tag is somewhat like an HTML tag. JSP tags can have a "start tag", a "tag body" and an "end tag". The start and end tag both use the tag name, enclosed in < and > characters. The end starts with
 
Introduction to JSP tags JSP Directives
Introduction to JSP tags JSP Directives INTRODUCTION TO JSP TAGS I n this lesson we will learn about the various tags available in JSP with suitable examples. In JSP tags can be devided into 4 different types. These are: Directives In the
 
Adding slash "\" character before quote "'" in a query
Adding slash "\" character before quote "'" in a query Adding slash " \ " character before quote " ' " in a query During the inserting the records in the database if user enters the phrases like "What ' s your name?", database gives the error due
 
Welcome! to the News letter archive
Welcome! to the News letter archive News Letter Archive Date Subject Dec-29-2001 Adding slash " \ " character before quote " ' " in a query
 
one-jar
One-JAR is a simple solution to a vexing problem in Java: how to distribute an application as a single jar-file, when it depends on multiple other jar-files. One-JAR uses a custom classloader to discover library jar files inside the main jar.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.