(Rookie mistake, I\'m sure.)
I\'m a first year computer science student, and attempting to write a program for an assignment, with the code;
import
You must declare the variable n in public static void calcNumFactors()
n
public static void calcNumFactors()
In your code, you have to pass the value of n as an argument to the function calcNumFactors() as Hovercraft Full Of Eels said.
calcNumFactors()