I'm trying to check if the integers in an array are increasing. But I'm getting ArrayOutOfBounds exception, and I do not understand why. I'm new to programming.
for (int i =0; i > newArray.length ; i++){
if (newArray[i] > newArray[i+1]){
System.out.println("Not increasing");
}
}
Thank you for your help.