public class Jpro2_4{ public static void main (String args[]) { char ch=' '; System.out.println("Input a interger or character:"); try { ch=(char)System.in.read(); //从硬盘中读入一个字符 } catch (IOException e) { } System.out.println("The input is \' "+ch+"\' "); }}
拿出错了啊?
添加回答
举报
0/150
提交
取消