String []


Allows you access to the individual characters of a String.


char thisChar = myString1[n]

Parameter Values

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

Return Values

  • The nth char of the String. Same as charAt().
Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.