Question: CHALLENGE ACTIVITY 7 . 3 . 1 : String methods. 5 6 7 4 6 8 . 3 9 4 6 9 8 8 .
CHALLENGE
ACTIVITY
: String methods.
Jump to level
String stringdata is read from input. If is in stringdata, then:
Output At index: followed by the index of the last occurrence.
Create a string from stringdata with the first two occurrences of replaced by and output stringdata on a newline.
Otherwise, output No matches'.
grad Click here for example
Ex: If the input is wwr x w then the output is:
At index:
g v rx w
stringdata input
Your code goes here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
