Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.IOException;

import java.io.InputStreamReader;

public class Main {
    private static String readFirstLine(InputStreamReader rdr) throws IOException {
        char[] buf = new char[1];
        StringBuffer bldr = new StringBuffer();
        rdr.read(buf);
        while (buf[0] != '>') {
            bldr.append(buf[0]);
            rdr.read(buf);
        }
        return bldr.toString();
    }
}