私にはやるべき課題があり、先生はその課題を行うのに役立つコードの一部を提供してくれました。しかし、私はその一部について確信が持てません。
String utenRepetisjon(String tekst){
String resultat = "";
for (int i = 0; i < tekst.length(); i++){
if (!tekst.charAt(i), resultat){ //Here I need help, if someone could be an angel and explain to me what this line does: !tekst.charAt(i), resultat). I know that it it something like: if the char at spot i in the string is not present, then something, but what's up with the comma?
resultat += tekst.charAt(i);
}
}
return resultat;
}