Collator SetDecomposition() Example

Set the decomposition mode of this Collator.


Collatorclass SetDecomposition() method example. This example shows you how to use SetDecomposition() method.This method Set the decomposition mode of this Collator.

Here is the code:-
/* 
 * @Program that Set the decomposition mode of this Collator.
 * SetDecomposition.java 
 * Author:-RoseIndia Team
 * Date:-16-Jun-2008
 */
import java.util.*;
import java.text.*;
public class SetDecomposition {
 public static void main(String[] args) {
Collator collate = Collator.getInstance(new Locale("US"));
int i=collate.getDecomposition();
System.out.println("Decomposition mode of this Collator is: "+i);
//Set the decomposition mode of this Collator.
collate.setDecomposition(2);
int j=collate.getDecomposition();
System.out.println("Decomposition mode of this Collator is: "+j);
    }

}

Output of the program:-
 Decomposition mode of this Collator is: 0
Decomposition mode of this Collator is: 2

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US