02 Apr Markham Saturday 14:00 Java Homework 20.03.28.
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.
Sample Input 1:
Sample Output 1:
Sample Input 2:
Sample Output 2: