Код: Выделить всё
public static boolean isWordSymmetric(String[] words, int start, int end){
if (words[start].toLowerCase().equals(words[end - start].toLowerCase())) {
if (start == end){
return true;
} else {
isWordSymmetric(words, start + 1, end);
}
}
return false;
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... eturn-true
Мобильная версия