扫码下载编程狮APP
import java.io.IOException; public class Main { public static void main(String[] args) { try { char c = (char) System.in.read(); while (c != '\r') { System.out.println(c); c = (char) System.in.read(); } } catch (IOException e) { } } }
运行结果如下:
联系方式:
扫描二维码
下载编程狮App
扫码关注 领资料包