Java BufferedReader Read Line readLine()

Here you can find the source of readLine()

Description

read Line

License

Open Source License

Declaration

public static String readLine() throws IOException 

Method Source Code


//package com.java2s;
/*/*from   w  w w . j  a  v a  2  s .c o m*/
 * Copyright 2011-2016 ZXC.com All right reserved. This software is the confidential and proprietary information of
 * ZXC.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into with ZXC.com.
 */

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

public class Main {
    private static BufferedReader consoleReader = new BufferedReader(new InputStreamReader(System.in));

    public static String readLine() throws IOException {
        return consoleReader.readLine();
    }
}

Related

  1. readLine()
  2. readLine()
  3. readLine()
  4. readLine()
  5. readLine()
  6. readLine(BufferedReader br)
  7. readLine(BufferedReader br, int maxlen)
  8. readLine(BufferedReader in)
  9. readLine(BufferedReader in)