Skip to content

Instantly share code, notes, and snippets.

@ninijay
Created October 5, 2016 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninijay/18c3292a059fe267e3b912680a9f07a5 to your computer and use it in GitHub Desktop.
Save ninijay/18c3292a059fe267e3b912680a9f07a5 to your computer and use it in GitHub Desktop.
bit shifting in java created by ninijay - https://repl.it/Doxs/0
class Main {
public static void main(String[] args) {
int a = 300 * 4;
int b = 300 << 2;
System.out.println(a);
System.out.println(b);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment