asked 58.2k views
0 votes
Please help me solves this for the teen talk string part is the teen tester java page correct

Please help me solves this for the teen talk string part is the teen tester java page-example-1
Please help me solves this for the teen talk string part is the teen tester java page-example-1
Please help me solves this for the teen talk string part is the teen tester java page-example-2

1 Answer

2 votes
Use the replace method:
text.replace(‘.’, ‘!!);
text.replace(‘!’, ‘!!’);
Or go to javadoc for replacing string function.
answered
User AppyMike
by
8.4k points