文件名称:Exception
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2013-06-19
- 文件大小:
- 18kb
- 下载次数:
- 1次
- 提 供 者:
- F**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在java.lang包中定义了Integer类作为int数据类型的对等类,其中定义了如下方法:
public static Integer valueOf(String s) throws NumberFormatException
用于将字符串s转换成Integer对象。当s不符合整数格式时,该方法抛出NumberFormatException异常。请编写简单程序转换一字符串为Integer对象,用2种方法抛出NumberFormatException异常:一种由程序本身捕获并处理异常,另一种将异常抛出,交由JVM捕获处理。
-Defined in the java.lang package classes as the int data type Integer peer class, which defines the following method: public static Integer valueOf (String s) throws NumberFormatException is used to convert the string s Integer object. When s does not meet the integer format, this method throws NumberFormatException exception. Please write a simple program to convert a string to an Integer object, using two kinds of method throws NumberFormatException exception: one by the program itself to catch and handle exceptions, and the other will be an exception thrown by JVM capture process.
public static Integer valueOf(String s) throws NumberFormatException
用于将字符串s转换成Integer对象。当s不符合整数格式时,该方法抛出NumberFormatException异常。请编写简单程序转换一字符串为Integer对象,用2种方法抛出NumberFormatException异常:一种由程序本身捕获并处理异常,另一种将异常抛出,交由JVM捕获处理。
-Defined in the java.lang package classes as the int data type Integer peer class, which defines the following method: public static Integer valueOf (String s) throws NumberFormatException is used to convert the string s Integer object. When s does not meet the integer format, this method throws NumberFormatException exception. Please write a simple program to convert a string to an Integer object, using two kinds of method throws NumberFormatException exception: one by the program itself to catch and handle exceptions, and the other will be an exception thrown by JVM capture process.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Exception
.........\build
.........\.....\classes
.........\.....\.......\exception
.........\.....\.......\.........\Exception.class
.........\.....\.......\.........\Exception2.class
.........\.....\.......\java
.........\.....\.......\....\util
.........\build.xml
.........\manifest.mf
.........\nbproject
.........\.........\build-impl.xml
.........\.........\genfiles.properties
.........\.........\private
.........\.........\.......\private.properties
.........\.........\.......\private.xml
.........\.........\project.properties
.........\.........\project.xml
.........\src
.........\...\exception
.........\...\.........\Exception.java
.........\...\.........\Exception2.java