> Java: Verify if number divides evenly by 3 or not?

Java: Verify if number divides evenly by 3 or not?

Posted at: 2014-12-18 
Dividing evenly means the remainder is 0.

If you want to check if the remainder is an even number then you have to do a little more.

The modulo operator (%) gives the remainder.

10%6 --> 4

(10%6) % 2 --> 0

How do I write a while statement that checks to see if when the entered number divided by 3 that the remainder is even or not? If the remainder is not an even number, it re-prompts the user to enter another number?