String s="1";
int i= Integer.parseInt(s);
int i= Integer.parseInt(s);
解决方案 »
- java聊天程序中的问题
- 用浏览器执行applet程序!!
- hibernate多表查询问题
- 大家帮我想一个JavaScript的脚本可以么?谢谢了!
- 赠送100分,高手请帮忙,不甚感激!
- JDialog里面可以生成一个JFileChooser吗?
- 请问在swt中怎样阻止窗体上的关闭按钮,重写他的动作。
- cannot make a static reference to the non-static field seg
- GregorianCalendar 的问题,想做个时间检查器,可是有问题,请大家一起帮忙
- 帮忙看看这是怎么回事?
- java面向对象编程—————————编译包,执行时出现异常
- 请高手们帮
int i=Integer.parseInt("12342");
} catch (Exception ex)
{
}
byte b = Byte.parseByte( s );
short t = Short.parseShort( s );
int i = Integer.parseInt( s );
long l = Long.parseLong( s );
Float f = Float.parseFloat( s );
Double d = Double.parseDouble( s );