import java.io.IOException;
class DWDemo {
public static void main(String[] args)
throws IOException{
char ch;
do{System.out.println("填写一个字母然后回车");
ch=(char)System.in.read();
}
while(ch!='q');
}
}为什么这个程序在填写一个字母后连续出现三行“填写一个字母然后回车”,这到底是什么原因?
class DWDemo {
public static void main(String[] args)
throws IOException{
char ch;
do{System.out.println("填写一个字母然后回车");
ch=(char)System.in.read();
}
while(ch!='q');
}
}为什么这个程序在填写一个字母后连续出现三行“填写一个字母然后回车”,这到底是什么原因?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货