Question: Write the BingoCaller method hasBeenCalled. The method hasBeenCalled returns a boolean value indicating whether a given number has been previously called. The array numbersCalled is
Write the BingoCaller method hasBeenCalled. The method hasBeenCalled returns a boolean value indicating whether a given number has been previously called. The array numbersCalled is used to keep track of whether a value was called. The array numbersCalled contains 75 boolean values that are initialized to false. An element of the array numbersCalled is marked true if it was called. For example, to check whether 1 has been called by the caller, the following call could be made: hasBeenCalled(1); // Checks the first element of numberCalled
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
