Java String copyValueOf() method

Facebooktwitterredditpinterestlinkedinmailby feather

copyValueOf() method returns a String that holds the character sequence of the character array.

Syntax:

Parameters:

data :  the character array i.e. String

Returns:

It returns a String that contains the characters of the character array.

Java String copyValueOf() Example 1:

Output:

Java String copyValueOf() Example 2:

Output:

Java String copyValueOf() Example 3:

Output:

 Java String copyValueOf() Example 4:

Output:

Facebooktwitterredditpinterestlinkedinmailby feather

Leave a Comment