Java Arena

Module 11

Return values and the call stack

Methods that give back a value. Returning values, calculating them from parameters, returning from branches, local variables, methods that call methods, the call stack, and text built in a loop and used to draw shapes. The end of MOOC part 2.

Steps

  1. Returning a value
  2. Computing the return value
  3. Returning from branches
  4. Variables inside methods
  5. Methods that call methods
  6. The call stack
  7. Returning text built in a loop
  8. Drawing shapes with methods