![]() |
![]() |
![]() |
![]() |
![]() |
|
When you wish to extract a particular character from a string, you use the
at: method, with the argument indicating the character that you
wish to extract. A 1 argument indicates that you want the first
character, because all string indexing is one based, as it is with arrays:
*-- Variable with a string assignment | *-- Method | | *-- Index of character to be extracted v v | ------ --- v string at: 1