We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5bb992 commit ab5c851Copy full SHA for ab5c851
src/benblack86/binary/BinaryBasics.java
@@ -55,7 +55,7 @@ public static void printBinary(int i) {
55
public static void printBinary2(int i) {
56
System.out.printf("%12s: ", i);
57
for(int k = 31; k > -1; k--) {
58
- // shift bit to the most significant position and apply mask
+ // shift bit to the least significant position and apply mask
59
System.out.printf("%s", i >> k & 0b1);
60
}
61
System.out.printf("\n");
0 commit comments