repeat

The repeat method returns a new string with a specified number of copies of the string.

 

Syntax

System.String repeat(System.Int32 count);

 

Parameters

count

Number of times the original string value should be repeated in the new string

 

Return Value

Returns the new string object containing copies of the original string.

 

Remarks

Member of string.

 

Example