把System.out这个PrintStream的缓冲区排空,当很少有像System.out.flush()用的,一般都是构造一个类如网络输出流的时候用,比如:
PrintWriter pw = new PrintWriter(new BufferedOutputStream(socket.getOutputStream()),true/*表示autoFlush*/);
PrintWriter pw = new PrintWriter(new BufferedOutputStream(socket.getOutputStream()),true/*表示autoFlush*/);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货