i have the following problem Given a string, return a \"cleaned\" string where adjacent chars that are the same have been reduced to a single char. So \"yyzzza\">
\"yyzzza\">
How about trying this one:
public String stringClean(String string){ char sc[] = string.toCharArray(); for(int i =0;i