JAVA cannot convert from int to short
<p>Hi I am new one here and this is my first question:
I have a code with simple aritmetic operator.
But it won't works:</p>

<pre><code>int a = 10;
short premennaTypuShort = (short)a;     /*retyped variable a into short type and entered into new variable*/
premennaTypuShort = premennaTypuShort - 7;
/*now i am trying to decrease the number but eclipse wrote that cannot convert from int to short.*/
</code></pre>

<p>i am trying to decrease the number specified as short but eclipse wrote that cannot convert from int to short. I don't undertand why.
so where is the problem ? how can I repair this error?</p>