文件名称:Exception
-
所属分类:
- 标签属性:
- 上传时间:2013-06-19
-
文件大小:18.31kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在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/
Exception/build/
Exception/build/classes/
Exception/build/classes/.netbeans_automatic_build
Exception/build/classes/.netbeans_update_resources
Exception/build/classes/exception/
Exception/build/classes/exception/Exception.class
Exception/build/classes/exception/Exception2.class
Exception/build/classes/java/
Exception/build/classes/java/util/
Exception/build.xml
Exception/manifest.mf
Exception/nbproject/
Exception/nbproject/build-impl.xml
Exception/nbproject/genfiles.properties
Exception/nbproject/private/
Exception/nbproject/private/private.properties
Exception/nbproject/private/private.xml
Exception/nbproject/project.properties
Exception/nbproject/project.xml
Exception/src/
Exception/src/exception/
Exception/src/exception/Exception.java
Exception/src/exception/Exception2.java
Exception/build/
Exception/build/classes/
Exception/build/classes/.netbeans_automatic_build
Exception/build/classes/.netbeans_update_resources
Exception/build/classes/exception/
Exception/build/classes/exception/Exception.class
Exception/build/classes/exception/Exception2.class
Exception/build/classes/java/
Exception/build/classes/java/util/
Exception/build.xml
Exception/manifest.mf
Exception/nbproject/
Exception/nbproject/build-impl.xml
Exception/nbproject/genfiles.properties
Exception/nbproject/private/
Exception/nbproject/private/private.properties
Exception/nbproject/private/private.xml
Exception/nbproject/project.properties
Exception/nbproject/project.xml
Exception/src/
Exception/src/exception/
Exception/src/exception/Exception.java
Exception/src/exception/Exception2.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.