对啊 不过jdk的doc里面就写得很清楚了,如果你有什么不明白,查阅文档是最好的办法
==============================================================================
public static Integer valueOf(String s)
                       throws NumberFormatExceptionReturns an Integer object holding the value of the specified String. The argument is interpreted as representing a signed decimal integer, exactly as if the argument were given to the parseInt(java.lang.String) method. 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)) Parameters:
s - the string to be parsed. 
Returns:
an Integer object holding the value represented by the string argument. 
Throws: 
NumberFormatException - if the string cannot be parsed as an integer.
==============================================================================