标签:blog [] pack 输入 读取 ati row 标准输入 bfc
package com.java.io; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Echo { public static void main(String[] args) throws IOException { BufferedReader stdin = new BufferedReader( new InputStreamReader(System.in)); String s; while((s = stdin.readLine()) != null && s.length()!= 0){ System.out.println(s); } } }
package com.java.io; import java.io.PrintWriter; public class ChangeSystemOut { public static void main(String[] args) { PrintWriter out = new PrintWriter(System.out,true); out.println("Hello, world"); } }
标签:blog [] pack 输入 读取 ati row 标准输入 bfc
原文地址:http://www.cnblogs.com/tenWood/p/7469973.html