[]

[StringObject Operator]

Description

Allows you access to the individual characters of a String.

Syntax

char thisChar = myString1[n]

Parameters

thisChar: Allowed data types: char.
myString1: Allowed data types: String.
n: a numeric variable.

Returns

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

See also