Created
February 10, 2022 04:11
-
-
Save iamdejan/d92bb4028c75d7556138acfcef6f77b9 to your computer and use it in GitHub Desktop.
Bit inversion in Java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int number = 7; | |
System.out.println((~number)); // will print -8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment