下列程序从标准输入设备——键盘读入一个字符,然后再输出到屏幕。要想完成此功能,画线处应该填入的语句为( )。 import java.io.*; public class Test { public static void main(String args[ ]) { char ch; try { ______; System.out.println(ch); } catch(IOException e) { e.printStackTrace(); } } }
A.
ch= System.in.read();
B.
ch=(char)Systcm in.read();
C.
ch=(char)System.in.readln();
D.
ch=(int)System in.read();
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】听力原文:W: Could you please tell me how to get to the bus station here? M: Go straight until you come to the stoplight. Turn to the right and go about two miles. When you get to the Sunny Grocery Store, ...
【单选题】听力原文:W: Could you please tell me how to get to the bus station here? M: Go straight until you come to the stoplight. Turn to the fight and go about two miles. When you get to the Sunny Grocery Store, ...