单项选择题
下列程序从标准输入设备读入一个字符,然后再输出到显示器,选择正确的一项填入横线处处,完成要求的功能()publicstaticvoidmain(String[]args){charch;try{_____________________________System.out.println(ch);}catch(IOExceptione){e.printStackTrace();}}
A.ch=System.in.read() B.ch=(char)System.in.read() C.ch=(char)System.in.readln() D.ch=(int)System.in.read()
单项选择题 增强for:也是JDK5的新特性,是为了简化使用Iterator迭代器遍历集合元素的书写,它用于遍历什么中的元素()
判断题 String类型的数据是基本类型的数据的
判断题 StringBuffer的ensureCapacity(intminimumCapacity)方法可以实现的功能是重新设置字符号串缓冲区的总空间