DIRECTIONS : Fill in each blank with the correct answer/output. Assume each statement happens in order and that one statement may affect the next statement.
String one = "sambenwilearethebest";
String two = "09876543210";
String three = "02 13 97 68 45 0";
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
DIRECTIONS : Fill in each blank with the correct answer/output. Assume each statement happens in order and that one statement may affect the next statement.
String sam = "hey there";
String ben = "hey thar";
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Question 41
41.
Explain method String substring(int beginIndex, int endIndex) and what it returns?
Question 42
42.
Explain method int indexOf(String str) and what it returns?
Question 43
43.
Explain method int length() and what purpose it serves?
Question 44
44.
How many indexOf methods does the String have? Define the term overloading. Is the String indexOf method overloaded?