Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.IOException;
import java.io.StringReader;

public class Main {
    public static void main(String[] argv) throws IOException {
        StringReader stringReader = new StringReader("java2s.com");

        stringReader.mark(2);

        System.out.println(stringReader.markSupported());

        System.out.println(stringReader.read());

        stringReader.reset();

        stringReader.close();
    }
}