0
How to solve a palindrome array
help
2 Réponses
0
public static boolean isPalindrome(int[] palindrom){
int s = 0;
int e = palindrom.length-1;
boolean weiter = true;
while (weiter && s < e) {
weiter = ((palindrom[s++] == palindrom[e--])?true:false);
}
return weiter;
}
0
@Murmeltier
can u explain it more detailed instructions please