Wednesday, December 26, 2007

Substrings

This gets the fifth character out of myName. The first number is the beginning, the second is the end. It is sort of like selecting text from a start point to an end point.

myName.substring(4, 5)

No comments: