: Unlike Part A, you must use a standard for loop (with int i ) because the index number is required for the formatted string.

The code appears to be a document identifier for a specific version of the 2022 AP Computer Science A Free Response Question (FRQ) #3 , titled " ReviewAnalysis ."

This method is more complex, requiring string searching and concatenation.

: Use contains("!") to find the exclamation point and endsWith() to check the final character.