package com.lixue.test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Test {
public static void mian(String[] args) throws IOException{
InputStreamReader isr=new InputStreamReader(System.in);
BufferedReader buf=new BufferedReader(isr);
String s=buf.readLine();
while(!s.equals("end")){
System.out.println("Echo:"+s);
s=buf.readLine();
}
}
}
|
|