Case_insensitive_order

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahmee
    New Member
    • Mar 2010
    • 39

    #1

    Case_insensitive_order

    PLZ any one explain me CASE_INSENSITIV E_ORDER with help of simple example and tell me the function of it
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    This is the Collator (Comparator) used in the string class when you call the compareToIgnore Case, or equalsIgnoreCas e functions.
    Code:
    String s = "abc";
    String s2 = "abcd";
    System.out.println(s.compareToIgnoreCase(s2)); // should print out a negative number.
    For more information, look up Collator Java class, Comparator java class, CASE_INSENSITIV E_ORDER

    Comment

    Working...