0

JavaPrograms,
I see you got your answer. However, I would like to point out that:
if (die1 || die2 == 1)
gave you problems because die1 is an int and (die2 == 1) is a boolean variable. that is what compiler said. you can't perform or operation on an int and a boolean. what you needed is:
die1 == 1 || die2 == 1
one more thing, in your if-else statements you evaluated the values of die1 and die2. in your switch-case statements, you were evaluating times variable.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.