bitwise

Run Settings
LanguageJava
Language Version
Run Command
class Main { public static void main(String[] args) { int all_ones = ~0; int bit14 = 1 << 14; int is14on = all_ones & bit14; System.out.println( Integer.toBinaryString(is14on) ); if (is14on != 0) { System.out.printf("yes it's on!\n"); } if (0) { printf("no!"); } } }
Editor Settings
Theme
Key bindings
Full width
Lines