I am trying to say " if a number is divided by 2 and the modulus is equal to 1"

if(count/2% == 1)


if(%(count/2) == 1)

It's not working. What am I doing wrong? Would really appreciate help. Thanks.

if ((count % 2) == 1)

oops! I posted this before realizing it was Java...Sorry in advance if the syntax is wrong.