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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.