previous
|
start
|
next
Substrings
String greeting = "Hello, World!";
String sub = greeting.substring(0, 5); // sub is "Hello"
Supply start and “past the end” position
First position is at 0
Substring length is “past the end” - start
previous
|
start
|
next