Collator GetStrength() Example
Returns this Collator's strength property.
Collatorclass GetStrength() method example. This example shows you how to use GetStrength() method.This method Returns this Collator's strength property.
Here is the code:-
/*
* @Program that Returns this Collator's strength property.
* GetStrength.java
* Author:-RoseIndia Team
* Date:-16-Jun-2008
*/
import java.util.*;
import java.text.*;
public class GetStrength {
public static void main(String[] args) {
Collator collate = Collator.getInstance();
//Returns this Collator's strength property.
int i=collate.getStrength();
System.out.println("Collator's strength is: "+i);
}
} |
Output of the program:-
| Collator's strength is: 2 |
|