public class main {
public static void main (string [] args) {< /p>
string up = "askdas"; < /p>
Полимеры (UP); < /p>
}
< /code>
Статические void -полимеры (String Polymers) {< /p>
String Unicos="";
for (int i = 0; i < polymers.length(); i++) {
char ch= polymers.charAt(i);
if (polymers.indexOf(ch)==polymers.lastIndexOf(ch)){
Unicos+=ch;
}
< /code>
} < /p>
System.out.println(Unicos);
< /code>
}
} < /p>
Подробнее здесь: https://stackoverflow.com/questions/794 ... -case-inpu