I have a problem to ask

Inside your for loop you have

This will not work for two reasons

  1. negativo is undefined because the global variable is Negativo and in Java variable names are case sensitive so these are two different variables.
  2. contenitore[] represent the whole array you need contenitore[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.

2 Likes