Java BufferedReader Read Line readLine()

Here you can find the source of readLine()

Description

read Line

License

Apache License

Declaration

private static String readLine() throws IOException 

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 {
    private static String readLine() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(
                System.in));/*from ww w.  j a va  2 s  .  c  om*/
        String code = br.readLine();
        br.close();
        return code != null ? code.trim() : "";
    }
}

Related

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