[Solved] How do I use a function involving integers?
Think of it like passing functions in math. The GCDFunction() has to receive the numbers into the function so we do public static void GCDFunction(int num1, int num2) That also lets Java know the type it is, type int. And your java variables are scoped inside of the functions so you have to print the … Read more