The point of these two code snippets is to highlight the difference between the original and the edited version, however, the code snippets are cut off awkwardly (especially equalsIgnoreCase)
Perhaps you could have inserted the line breaks yourself according to acceptable Java whitespacing e.g.
The point of these two code snippets is to highlight the difference between the original and the edited version, however, the code snippets are cut off awkwardly (especially
equalsIgnoreCase
)Perhaps you could have inserted the line breaks yourself according to acceptable Java whitespacing e.g.
return Arrays.stream(wordsInPreppedSentence) .anyMatch(preppedWord::equalsIgnoreCase);
which would also make it easier to compare the two code snippets