Java BufferedReader Read Line readLine()

Here you can find the source of readLine()

Description

read Line

License

Apache License

Declaration

public static String readLine() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static String readLine() {
        try {/*from   w  w  w.  j av a  2  s  .c  om*/
            return new BufferedReader(new InputStreamReader(System.in)).readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. readLine()
  2. readLine()
  3. readLine()
  4. readLine()