Collator Clone() Example
Returns a clone of this instance.
Collatorclass Clone() method example. This example shows you how to use Clone() method.This method Returns a clone of this instance.
Here is the code:-
/*
* @Program that returns a clone of this instance.
* Clone.java
* Author:-RoseIndia Team
* Date:-16-Jun-2008
*/
import java.util.*;
import java.text.*;
public class Clone {
public static void main(String[] args) {
Collator collate = Collator.getInstance();
Object o=collate.clone();
System.out.println("Hash Code is: "+o.hashCode());
//Specify the Decomposition mode value.
System.out.println("The Decomposition mode value : "+collate.FULL_DECOMPOSITION);
}
} |
Output of the program:-
| The Decomposition mode value : 2 |
|