charAt

The charAt method returns the character at the specified index in a string.

 

Syntax

System.String charAt(System.Int32 index);

 

Parameters

index

Index of the character to return. Being 0 the first character and -1 the last one.

 

Return Value

Returns the character in the index

 

Remarks

Member of string.

 

Example