+ 2
5th Sep 2019, 2:03 PM
Lalitha
5 Réponses
+ 3
Numbers that start with 0 are considered to be in octal system. So the problem here is the last digit '8', since in the octal system only digits from 0 to 7 are allowed. 023 for example would work, yielding 2*8+3 = 19 in the usual decimal system
5th Sep 2019, 2:25 PM
Matthias
Matthias - avatar
+ 2
Because an int shouldn't start with 0, change it to a=28
5th Sep 2019, 2:20 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
5th Sep 2019, 2:27 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Please mention the language (Java) in Relevant Tags 👍
5th Sep 2019, 2:44 PM
Ipang
0
Please mention the language (Java) in Relevant Tags 👍
5th Sep 2019, 2:44 PM
Ipang