从控制台读取字符串行
//package com.nowjava; import java.util.Scanner; /**来自 n o w j a v a . c o m**/ public class Main { public static void main(String[] argv) throws Exception { System.out.println(readStringLine()); } public static String readStringLine() { return new Scanner(System.in).nextLine().trim(); } }