java check if something is divisible by 10 code example Example: java divisible by operator boolean isDivisibleBy20 = number % 20 == 0;