public class Test{
public static void main(String args[])
{
String s="123456";
int t=Integer.parseInt(s);
System.out.println(t);
}
}
public static void main(String args[])
{
String s="123456";
int t=Integer.parseInt(s);
System.out.println(t);
}
}
解决方案 »
- 一个奇怪的Socket问题,高手进来看一看!
- 请教在线在页面上设置Windows应用程序各种配置的开发思路
- 同一个jdk安装文件(jdk-6u13-windows-i586-p.exe)先后在两台xp系统中安装,为何在安装目录中生成的文件夹不同?
- int[] a = new int[5]; 为什么初值为会是零,奇怪啊
- 在MS—DOS下运行时的一个问题!
- 有没有遇到过catch 中没有捕获,而throw却能现实的异常?
- 如何獲得環境變量的值
- 求htmlparser??
- 空指针
- 有谁知道Java8中关于日期时间Period的ofWeeks和ofMonths的不同。
- 本人正在做一个学生管理系统,有些具体问题想问问大家~~~~~~~
- 请问java怎么把一个字符串中的字符替换成别的字符
{
public static void main(String[] args)
{
String str="123";
int i=Integer.parseInt(str);
System.out.println("The Result is :" +i);
}
}