从控制台读取行
//package com.nowjava; /* from nowjava - 时 代 Java */ import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] argv) throws Exception { System.out.println(readLine()); } private static BufferedReader inputReader = new BufferedReader( new InputStreamReader(System.in));/**来自 时 代 J a v a 公 众 号 - nowjava.com**/ public static String readLine() { String line = ""; try { line = inputReader.readLine(); inputReader.mark(1); if (inputReader.ready()) { // This solves java's strange behavior of reading CRLF. if (inputReader.read() !=