THE PACKAGE JAVA.LANG
java.lang.Integer
20.7
20.7.19
public static Integer valueOf(String s)
throws NumberFormatException
The argument is interpreted as representing a signed decimal integer, exactly as if
the argument were given to the
parseInt
 method that takes one argument
( 20.7.17). The result is an
Integer
 object that represents the integer value spec 
ified by the string.
In other words, this method returns an
Integer
 object equal to the value of:
new Integer(Integer.parseInt(s))
20.7.20
public static Integer valueOf(String s, int radix)
throws NumberFormatException
The first argument is interpreted as representing a signed integer in the radix spec 
ified by the second argument, exactly as if the arguments were given to the
parseInt
 method that takes two arguments ( 20.7.18). The result is an
Integer
object that represents the integer value specified by the string.
In other words, this method returns an
Integer
 object equal to the value of:
new Integer(Integer.parseInt(s, radix))
20.7.21
public static Integer getInteger(String nm)
The first argument is treated as the name of a system property to be obtained as if
by the method
System.getProperty
 ( 20.18.9). The string value of this prop 
erty is then interpreted as an integer value and an
Integer
 object representing this
value is returned. If there is no property of the specified name, or if the property
does not have the correct numeric format, then
null
 is returned.
In other words, this method returns an
Integer
 object equal to the value of:
getInteger(nm, null)
20.7.22
public static Integer getInteger(String nm, int val)
The first argument is treated as the name of a system property to be obtained as if
by the method
System.getProperty
 ( 20.18.9). The string value of this prop 
erty is then interpreted as an integer value and an
Integer
 object representing this
value is returned. If the property does not have the correct numeric format, then an
Integer
 object that represents the value of the second argument is returned.
493






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved