02 Apr Markham Saturday 14:00 Java Homework 20.03.28.
Question:
Input a string using a scanner and output a “cleaned” string where adjacent characters that are the same have been reduced to a single char.
Use recursion
Sample Input 1:
Yyzzza
Sample Output 1:
Yza
Sample Input 2:
Apple
Sample Output 2:
aple
Sorry, the comment form is closed at this time.