请问各位大虾 如何将System.in.read()方法接收的数字Unicode码转为数字? String instr = new BufferedReader(new InputStreamReader(System.in)).readLine();int youneddnum = Integer.parseInt( instr ); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 String instr = new BufferedReader(new InputStreamReader(System.in)).readLine();int youneednum = Integer.parseInt( instr ); 请问这个与下面那段,有什么区别int n=1;char a=0;try{ a=(char)System.in.read(); n=Integer.parseInt(String.valueOf(a));}catch(IOException e){}; 用myeclipes写的程序,在命令窗口下java运行出错 如何遍历Map<Integer, Map<String, List>>呢 请问大家在java中怎么调用.net的webservice? 简单问题,闷! 为什么会报出文件未找到异常? JAVA中如何创建数据库? 那位dx可以提供jbuilder的电子书下载,急! 怎么调用某种类型文件,让其被默认的应用程序打开 一个简单的小问题! 请问哪儿有JB6完全版的可以下来学习呢?谢谢 读文件时invalid stream header表示什么? 【问题求助】关于JAVA的java
int youneednum = Integer.parseInt( instr );
int n=1;
char a=0;
try{
a=(char)System.in.read();
n=Integer.parseInt(String.valueOf(a));
}catch(IOException e){};