20.12
java.lang.String
THE PACKAGE JAVA.LANG
20.12.39
public static String valueOf(char[] data)
throws NullPointerException
A string is created and returned. The string represents the sequence of characters
currently contained in the character array argument. The contents of the character
array are copied; subsequent modification of the character array does not affect
the newly created string.
20.12.40
public static String valueOf(char[] data,
int offset, int count)
throws NullPointerException,
IndexOutOfBoundsException
A string is created and returned. The string represents the sequence of characters
currently contained in a subarray of the character array argument. The
offset
argument is the index of the first character of the subarray and the
count
argu
ment specifies the length of the subarray. The contents of the subarray are copied;
subsequent modification of the character array does not affect the newly created
string.
If
data
is
null
, then a
NullPointerException
is thrown.
If
offset
is negative, or
count
is negative, or
offset+count
is larger than
data.length
, then an
IndexOutOfBoundsException
is thrown.
20.12.41
public static String valueOf(boolean b)
A string representation of
b
is returned.
If the argument is
true
, the string
"true"
is returned.
If the argument is
false
, the string
"false"
is returned.
20.12.42
public static String valueOf(char c)
A string is created and returned. The string contains one character, equal to
c
.
20.12.43
public static String valueOf(int i)
A string is created and returned. The string is computed exactly as if by the
method
Integer.toString
of one argument ( 20.7.12).
546
footer
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