jdk/src/share/classes/java/text/Collator.java
changeset 18156 edb590d448c5
parent 13583 dc0017b1a452
child 23010 6dadb192ad81
equal deleted inserted replaced
18155:889970e5b728 18156:edb590d448c5
    70  *
    70  *
    71  * <p>
    71  * <p>
    72  * The following example shows how to compare two strings using
    72  * The following example shows how to compare two strings using
    73  * the <code>Collator</code> for the default locale.
    73  * the <code>Collator</code> for the default locale.
    74  * <blockquote>
    74  * <blockquote>
    75  * <pre>
    75  * <pre>{@code
    76  * // Compare two strings in the default locale
    76  * // Compare two strings in the default locale
    77  * Collator myCollator = Collator.getInstance();
    77  * Collator myCollator = Collator.getInstance();
    78  * if( myCollator.compare("abc", "ABC") < 0 )
    78  * if( myCollator.compare("abc", "ABC") < 0 )
    79  *     System.out.println("abc is less than ABC");
    79  *     System.out.println("abc is less than ABC");
    80  * else
    80  * else
    81  *     System.out.println("abc is greater than or equal to ABC");
    81  *     System.out.println("abc is greater than or equal to ABC");
    82  * </pre>
    82  * }</pre>
    83  * </blockquote>
    83  * </blockquote>
    84  *
    84  *
    85  * <p>
    85  * <p>
    86  * You can set a <code>Collator</code>'s <em>strength</em> property
    86  * You can set a <code>Collator</code>'s <em>strength</em> property
    87  * to determine the level of difference considered significant in
    87  * to determine the level of difference considered significant in