I know this is simple, but I don’t really understand the homework-question:
Assume the signature of the method xMethod is as follows.
Explain two different ways to invoke xMethod:public static void xMethod(double[] a)
I thought to invoke a method you just do:
xMethod(myarray);
What could it mean by asking two different ways?
If this is for a first time java class, my guess is he is looking for these 2 cases:
Basically illustrating you can make an array to pass, or simply create one in the call.
Just a guess though