Name __________________________________________
(10 points) Given the following local variable declarations:
String a = "abc"; String s = a; String t;
What is the value of the following expressions (or ERROR)?
s.length()
t.length()
1 + a
a.toUpperCase()
"Tomorrow".indexOf("r")
"Tomorrow".lastIndexOf('o')
"Tomorrow".substring(2,4)
(a.length() + a).startsWith("a")
s == a
a.substring(1,3).equals("bc")