Hi,
I'm studying the Jeanne and Scott's book.
On the example on page 61:
I do not understand why the third line shows compilation error.
I debug it on Netbeans and shows that x and y are short variables.
I understand that, in the third line, they are converted to int but, what I do not understand, is why I get error in this line if in line 1 an int was converted to a short without any error.
Thanks