that code turns me mad | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

that code turns me mad

why does the result come out without the additionMethod's values added? https://code.sololearn.com/cYggH7hrF42g/#java

25th Aug 2017, 9:39 AM
Hmmam Babe khuoja
Hmmam Babe khuoja - avatar
1 Respuesta
+ 9
You're always adding 0 because the variable burgers is 0, you don't set it in your rollBurger method.
25th Aug 2017, 11:24 AM
Tashi N
Tashi N - avatar