that code turns me mad | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 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