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