[]

[StringObject Operator]

Description

Allows you access to the individual characters of a String.

Syntax

char thisChar = myString1[n]

Parameters

char thisChar - a character variable

myString1 - a String variable

int n - a numeric variable

Returns

The nth char of the String. Same as charAt().

See also