Question: in java Question 5 Write a program that prints the index of each occurrence of the letter a' in the string Happy days are here

in java
Question 5 Write a program that prints the index of each occurrence of the letter a' in the string Happy days are here again. Your program output should replicate the screenshot shown below. a at index 1 a at index 7 a at index 11 a at index 20 a at index 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
