title: A way to invert the binary value of a integer variable
body: <p>I have this integer <code>int nine = 9;</code> which in binary is <code>1001</code>. Is there an easy way to invert it so I can  get <code>0110</code> ?</p>