58.1k 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
User Yarik Dot
by
3.4k points

1 Answer

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