作者在 2007-05-15 21:05:00 发布以下内容
import java.io.*;
public class test1 {
public static void main(String[] args) throws IOException{
char c;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str;
System.out.print("i am a ");
do{
str=br.readLine();
System.out.println(str);
}while(!str.equals("i am a student"));
do{
c=(char)br.read();
System.out.println(c);
}while(c!='q');
test1 test1 = new test1();
}
}