Quiz: Strings
Provide the values for the following expression, given
String name = "Udacity";
Put quotation marks around all strings.
name.length() |
7 |
|
name.substring(3, 7) |
"city" |
|
name.indexOf("c") |
3 |
|
"Hello"+ name |
"HelloUdacity" |
Note that the string does not contain a space. |