2006年8月9日
摘要: 一个学员问了一个关于IO的怪问题,问题是这样的:读取键盘输入的一个字符,然后打印输出这个字符,在打印字符的前面和后面分别加了一个字符串,程序的代码如下:public class Test{ public static void main(String [] args) throws Exception { System.out.print("Input a char:"); char ch = (char)System.in.read(); System.out.println("hello" + ch + "AB"); }}编译并运 阅读全文
posted @ 2006-08-09 15:55 阳光VIP1 阅读(109) 评论(0) 推荐(0) 编辑