public class InputStreamReaderTest{
public static void main(String[] args) throws IOException{
//从控制台输入并将输入的值传递给BufferedReader
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//当输入over时候,程序退出
while(true){
String str = br.readLine();
if(str.equals("over"))
break;
System.out.println(str);
}
}
}