How do you invoke a method? [closed]

In your main method, you can call your methods by using:

public static void main(String[] args)
{
    //-- Your original code up above

    printArray(testArray1); //For the array of ints
    printArray(testArray2); //For the array of doubles
}

Leave a Comment