StringCharacterIterator clone() method in Java with Examples
The clone() method of java.text.StringCharacterIterator class in Java is used to clone this StringCharacterIterator. It means that this method will create another instance of StringCharacterIterator with all the properties the same as this StringCharacterIterator and return it.
public Object clone()
Parameter: This method do not accept any parameter.
Return Value: This method returns an Object which is the clone of this StringCharacterIterator.
Exception: This method do not throw any Exception.
Current StringCharacterIterator: java.text.StringCharacterIterator@c11e1b98 Cloned StringCharacterIterator: java.text.StringCharacterIterator@c11e1b98