String.valueOf
Class Overview | Class Members |
This Package |
All Packages
public static String valueOf( Object obj )
Parameters
- obj
- an Object.
Returns
if the argument is null, then a string equal to
"null"; otherwise, the value of
obj.toString() is returned.
Description
Returns the string representation of the Object argument.
See Also
toString
public static String valueOf( char data[] )
Parameters
- data
- a char array.
Returns
a newly allocated string representing the same sequence of
characters contained in the character array argument.
Description
Returns the string representation of the char array
argument.
public static String valueOf( char data[],
int offset,
int count )
Parameters
- data
- the character array.
- offset
- the initial offset into the value of the
String.
- count
- the length of the value of the String.
Returns
a newly allocated string representing the sequence of
characters contained in the subarray of the character array
argument.
Description
Returns the string representation of a specific subarray of the
char array argument.
The offset argument is the index of the first
character of the subarray. The count argument
specifies the length of the subarray.