相关代码 |
|
import java.io.InputStreamReader; import java.io.BufferedReader; public class Dome2 { public static void main(String [] args) throws Exception { BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); String str = br.readLine(); while (!str.equals("quit")) { System.out.println (str); str = br.readLine(); } br.close(); } }
相关资源 |
|