top of page

Strings are simply an array of characters.

 

In the same way as arrays, a String's characters are each found at a particular index, with the first character in index 0. Take for example, the String "waterloo". The 'w' character is located in index 0, 'a' is located in index 1, etc. One note to make here is that the LAST index of a String is always ONE LESS than the length of a String. In the case of "waterloo" the second 'o' character is the last character of the word and located in index 7, however the word "waterloo" is 8 characters long!

​

Here are a few topics to get started with Strings:

​

Common String Methods

StringBuilders

Regular Expressions (RegEx)

​

Exercises

Strings

bottom of page