简答题:本题读取用户输入的字符流,直到用户输入字符串quit后结束。 importjava.io.*; public class

  • 题目分类:Java
  • 题目类型:简答题
  • 查看权限:VIP
题目内容:
本题读取用户输入的字符流,直到用户输入字符串quit后结束。
importjava.io.*;
public class javal{
public static void main(String[]args){

BufferedReader in;
ir=new InputStreamReader(System.in);
in=new BufferedReader(ir);
System.OUt.println("please input:");
while( ){
try{
String s=in.readLine();
System.out.println("echo:"+s);
if(S.equals("quit"))

)catch(Exception e){
}
}
}
}
参考答案:
答案解析:

阅读短文,回答题:Announcement(通知)Goodmorning.ladiesand gentlemen.May

阅读短文,回答题:Announcement(通知)Goodmorning.ladiesand gentlemen.May I draw your attenti

查看答案

________________

________________

查看答案

What are the man and woman talking about?

What are the man and woman talking about?A.Fashion. B.Music. C.A film. D.A book.

查看答案

从所给选项中选出与各项意义相符的选项,回答题:。A.planeB.homework C. moneyD.medicine

从所给选项中选出与各项意义相符的选项,回答题:。A.planeB.homework C. moneyD.medicine E.umbrellaF.n

查看答案

What do you imagine the child uses this old tool________?

What do you imagine the child uses this old tool________?A.about B.by C.for D.o

查看答案