Código:
public boolean probarConsecutivos(int arreglo[]){
Arrays.sort(arreglo);
for(int i = 1; i < arreglo.length; i++){
if((arreglo[i] - 1) != arreglo[i - 1]){
return false;
}
}
return true;
}
Muchas gracias!!


