‹ Back to the paper
The java statement to print the position of 2nd occurrence of the letter 'I' within the word…
The java statement to print the position of 2nd occurrence of the letter 'I' within the word "MICHIGAN".
Answer
Answer
AISystem.out.println("MICHIGAN".indexOf('I', "MICHIGAN".indexOf('I') + 1));
From ISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024), question 44.