arrays in methods
I'm trying to use an array in a method I wrote called "cardGetter" that takes the array "cards" and returns "number". the array "cards" contains ints and "number" is an int.
I thought it would look like this when the return value is gotten in the main:
number = cardGetter(number, cards[]);
But my compiler is telling me this is incorrect. does anyone know the correct way to do this?

