Name ______________________
Assume the following:
String a = "Adios"; String h = "Hasta luego";
Give the values of the following expressions.
| 1 | ____________ | a.length() |
| 2 | ____________ | a.substring(3) |
| 3 | ____________ | a.substring(1,2) |
| 4 | ____________ | "yesterday".substring(4).length() |
| 5 | ____________ | h.substring(1, 4)..substring(1).toUpperCase() |
| 6 | ____________ | h.indexOf("e") |
| 7 | ____________ | "I've been seen".lastIndexOf("e") |
| 8 | ____________ | "Length=" + a.length() |
| 9 | ____________ | (a.substring(2, 4) + h.substring(3, 5)).toUpperCase() |
| 10 | ____________ | h.substring(0, h.indexOf(" ")).toLowerCase() |