String str = "1234";
int num = new Integer(str).intValue();
int num = new Integer(str).intValue();
解决方案 »
- 求解
- java 文件自动下载 怎么实现 急急急!!!
- 如何解析代数式,只有+ - * / (),标准4则运算
- 如何在线程中改变UI
- java计时器在哪儿呀
- 两个JAVA连接数据库的小问题,请各位高手帮忙~~~~~
- 请问如何将数据库中得到的数据写入table中?
- IntelliJ IDEA 的working directory问题
- 那位老大用过东软的短信网关api(java版的),解决了问题分数大大的给!
- 有关于学习使用Rational Rose Enterprise Edition方面的中文资料吗?
- ****************小问题!*************
- 请教:关于socket通讯的怪问题。
已经被问过 N 遍了
1.
String Str1="1234";
int n = new Integer(Str1).intValue();2.
String Str1="1234";
int i =Integer.parseInt(Str1);
int num1;
num1=Integer.parseInt(Str1);
int i = Integer.parseInt(s);
System.out.println(i);
//4321
String s = "4321";
int i = Integer.parseInt(s);
}catch(NumberFormatException e)好象叫这名字把....