Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.IOException;

public class Main {

    public static void main(String[] args) {

        try {
            while (true) {
                int datum = System.in.read();
                if (datum == -1)
                    break;
                System.out.println(datum);
            }
        } catch (IOException ex) {
            System.err.println("Couldn't read from System.in!");
        }
    }
}