IncorrectCorrectNo Answer was selectedInvalid Answer
Consider the following code segment.
publicstaticintmysteryMethod(String word){int sum =0;for(int i =0; i < word.length(); i++){
word = word.toLowerCase();if(word.charAt(i)=='a'){
sum++;}}return sum;}
Java
What would the method call mysteryMethod("It was a blustery day.") return?