
Java System类对IO的支持
「已注销」
这个作者很懒,什么都没留下…
展开
-
Java System类对IO的支持(输出)
import java.io.OutputStream; public class Demo { public static void main(String[] args) throws Exception { OutputStream out = System.out; out.write("Hello World".getBytes()); } }原创 2018-04-10 11:09:40 · 207 阅读 · 0 评论 -
Java System类对IO的支持(输入)
import java.io.InputStream; public class Demo { public static void main(String[] args) throws Exception { InputStream in = System.in; StringBuffer buf = new StringBuffer(); System.out.println(...原创 2018-04-10 11:16:23 · 176 阅读 · 0 评论