java check if divisible code example Example: java check if divisible int divisiblenumber = 6; if(divisiblenumber % 2 == 0); print("success")