- Nov 9, 2011
- 355
- 0
- 0
Hi guys, I'n my current project I am trying to have one method create an array and another method analyze that array.
So I have:
public static int[] rollDie()
CODE CODE CODE
//This returns an array titled dieResults.
I want to have:
public void outputResults(I want it to accept the dieResults array)
But, I don't know how to make outputResults accept an array. I can't find it online anywhere either.
I want to accept the array so I can count the results and display how many times each number of a die was rolled. I need to have both methods.
Thanks for any input!
So I have:
public static int[] rollDie()
CODE CODE CODE
//This returns an array titled dieResults.
I want to have:
public void outputResults(I want it to accept the dieResults array)
But, I don't know how to make outputResults accept an array. I can't find it online anywhere either.
I want to accept the array so I can count the results and display how many times each number of a die was rolled. I need to have both methods.
Thanks for any input!
Last edited: