Inside your for loop you have
This will not work for two reasons
negativo
is undefined because the global variable isNegativo
and in Java variable names are case sensitive so these are two different variables.contenitore[]
represent the whole array you needcontenitore[i]
to represent the current array element
I think it is time for you to try again. Please post your sketch below instead of editing the original post.