All Subjects
Light
AP Computer Science A
The "printPrimeNumbers" is the name of the method defined in this case. It takes an integer input `n` and prints all prime numbers up to `n`.
method declaration: The part of the code that defines and names the method.
method invocation: The act of calling or executing a specific method.
local variable: Variables defined inside a method and only accessible within that method. In this case, `i`, `j`, and `isPrime` are local variables.