I'm getting an error when I'm trying to do somethink like this:
byte a = 23;
a = a - 1;
The compiler gives this error: Test.java:8: possible loss of precision found : int required: byte a = a - 1; ^ 1 error
Casting doesn't solve the error... Why the compiler don't let me do it? Should I need to transform the variable 'a' into an int?