Код: Выделить всё
class Solution {
public char findTheDifference(String s, String t) {
char [] b = s.toCharArray();
char [] c = t.toCharArray();
char news = '\0';
for(char z : c){
for(char n : b){
if(z != n || n == ' '){
news = z;
}
}
}return news;
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... y-counting