Java - Strings Class-String copyValueOf() Method - Java

Description

This method returns a String that represents the character sequence in the array specified.

Syntax

Here is the syntax of this method −

Parameters

Here is the detail of parameters −

  • data − the character array.

Return Value

This method returns a String that contains the characters of the character array.

Example

This will produce the following result −

Output

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Java Topics