• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
+ 2

that code turns me mad

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

javamethodsencapsulationconstructorssololearn
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

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
How my gradient is so mess I code in vscode and copied here to ask some questions please help me with this one too
1 Votes
HELP ME LEARN
1 Votes
Please tell me about methods
1 Votes
Does anyone know how to go to another "page" on the same page using the HTML button tag?
2 Votes
I am beginner in CS, how I learn C++?
0 Votes
Can I learn both graphic design and web development at the same time?
0 Votes
How do i learn php in here?
1 Votes
Hi everyone I hope you’re well
0 Votes
Running of python or js script (backend) and entering of html page by clicking SUBMIT button
2 Votes
Inserting Images
1 Votes