Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.text.CharacterIterator;
import java.text.StringCharacterIterator;

public class Main {
    public static void main(String[] argv) throws Exception {

        CharacterIterator it = new StringCharacterIterator("abcd");

        ((StringCharacterIterator) it).setText("efgh");
        char ch = it.current();
    }
}