snowman2
Fortgeschrittenes Mitglied
- 19
Ich habe in meinem code eine ganz simple Rechnung :
In der Additionszeile meldet mir Eclipse "Type mismatch: cannot convert from int to byte". Wo ist dort ein int? Wird "4" als int gehandhabt?
Code:
byte a,b;
a = 5;
b = a + 4; // Fehler
In der Additionszeile meldet mir Eclipse "Type mismatch: cannot convert from int to byte". Wo ist dort ein int? Wird "4" als int gehandhabt?