• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Beginner's Java Tutorial: Can you explain this output?

The way I'm reading it is that the speedUp function would increment the speed stored in the speed variable by the value specified for incrementing. (so 10=0+10 then 20=10+10)

The changeGear function changes the value of the the gear variable to the newValue (so from 1 to 2 and then from 2 to 3)
 
Back
Top Bottom