You need to sign in to do that
Don't have an account?
pavan kumar v
Extract Specific string and add a new word after it
Can anyone guide me on this to tackle this.
String aa = ‘hey how you’;
String bb = aa.contains(‘are’); // I need to extract ‘how’ from aa and place it in a new string bb.
Then I need to ADD a NEW word ‘are’ after the word ‘how’
So finally the sentence would be ‘ hey how are you’ .
Can anyone please guide me on this
String aa = ‘hey how you’;
String bb = aa.contains(‘are’); // I need to extract ‘how’ from aa and place it in a new string bb.
Then I need to ADD a NEW word ‘are’ after the word ‘how’
So finally the sentence would be ‘ hey how are you’ .
Can anyone please guide me on this
Can you check the below code.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,