Create strings, call methods, save results, and test what really changes.
Create one string with new and one with the shorter form
Start with one string, then write these four method calls
Print the number of characters in word.
Print word.substring(1, 4).
Print word.substring(2).
Print the first index of "d".
Save each returned value in a variable with the correct type
Run the code and compare the two printed lines
Test an empty string and a null reference
Build one short program that uses several string methods in the same flow.
"robot factory ready".substring().indexOf() to find one letter position.equals() to test whether one result matches your target text.