Professional Documents
Culture Documents
Java String Comparetoignorecase
Java String Comparetoignorecase
http://www.tuto rialspo int.co m/java/java_string _co mpare to ig no re case .htm Co pyrig ht tuto rials po int.co m
Description:
T his method compares two string s lexicog raphically, ig noring case differences.
Syntax:
Here is the syntax of this method:
Parameters:
Here is the detail of parameters:
Return Value:
T his method returns a neg ative integ er, zero, or a positive integ er as the specified String is g reater than,
equal to, or less than this String , ig noring case considerations.
Example:
public class Test {
0
10
-10