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