Piet Souris wrote:then b.m1() is illegal.
Collie Mason wrote:Thank you! I called the playGame() method in toString(), and it cleared up my issue. However, now "computer" is only being assigned as 1, not somewhere in the range between 1 and the user's input (assigned as "upperBound"). How can I fix this?
I appreciate the suggestion with random.nextInt(), and I may use that in future code.