public class readline { public static void main(String args[]) { String strInfo=null; int pos=0; byte[] buf=new byte[1024];//定义一个数组,存放换行前的各个字符 int ch=0; //存放读入的字符 system.out.println(“Please input a string:”); while(true) {
评论星级较低,若资源使用遇到问题可联系上传者,3个工作日内问题未解决可申请退款~