Question: HELP ME WITH THIS QUESTION! PLEASE!! Assume word = 'Apples' Fill in the blanks with the values each of the following method calls would return.
HELP ME WITH THIS QUESTION! PLEASE!!
Assume word = 'Apples'
Fill in the blanks with the values each of the following method calls would return. Do not put any quotes in the output, only type the character(s).
1. word.charAt(0): ______________________
2. word.charAt(5): __________
3. word.charAt(word.length - 2): ___________
4. word.substring(0, 5): ____________
5. word.substring(4, 5): ____________
6. word.substring(0, word.length - 1): ______________
7. word.substring(1 word.length): _______________
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
