Question: Given the String variable called word, initialized to Supercalifragilisticexpialidocious write the String method that will achieve the answer to the following questions: Write the instruction
Given the String variable called word, initialized to Supercalifragilisticexpialidocious write the String method that will achieve the answer to the following questions:
Write the instruction to get the length of word. _________________
Write the instruction to get fragil from the word above. ______________________
Write the instruction to get docious from the word above. ________
Write the instruction that will return the last char of r from the word above. ______
Write the instruction that will print out the first location of the letter e _________
Write the instruction that will print out the second location of the letter e _______
Write the instruction that will print out the word all in upper case ________
Write the program that contains all 7 of these questions, debug it, and test it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
