IncorrectCorrectNo Answer was selectedInvalid Answer
Consider the following method
publicstaticvoidjumpAndHop(String word){int i =0;while(i < word.length()-1){String letter = word.substring(i, i +1);if(letter.equals("m")){
i +=2;}elseif(letter.equals("i")){
i +=3;}
i++;}}
Java
How many times does the loop execute when the following statement is executed?