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 {
            char c = (char) System.in.read();
            while (c != '\r') {
                System.out.println(c);
                c = (char) System.in.read();
            }
        } catch (IOException e) {
        }

    }

}