从控制台读取字符串值
//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(readStringValue()); } public static String readStringValue() { return new Scanner(System.in).next().trim(); } }/** from n o w j a v a . c o m**/