public boolean isEven(int data){ if((data&1)== 0) return true; return false; }
much faster than using %