Diana V.

asked • 10/09/21

Write a recursive method that checks if a string has two of the same characters in a row. The method should display the remaining string.


Sample Run

----jGRASP exec: java CharacterRepeat
Enter a string: hello
Checking hello...
Checking ello...
Checking llo...
true!

----jGRASP: operation complete.

1 Expert Answer

By:

Paul W. answered • 10/10/21

Tutor
5 (10)

Professional Web Software Developer with Passion for Teaching

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.