- int x = 8; // binary: 0000 1000
- int y = x >> 2; // right shift x by 2 positions
- // After right shift by 2 positions, y will be 0000 0010 in binary, which is decimal 2
- System.out.println(y); // Output:
Tools
- Sandbox
- Paste Code
- Snippets
- Generators
- Checks
- Convertors
[text] Hi
Viewer
Editor
Share
Do you find this tool useful? Then share it with your friends or colleagues. This will help us to make our free web tools better.
You can edit this paste and save as new:
Information about embedding
In order to embed this content into your website or blog, simply copy and paste one of the codes provided below.
1. JavaScript Embedding (shows full code, full height depending on amount of lines in paste)
<script src="https://wtools.io/code/embed-js/bUST"></script>
2. Iframe Embedding (you can set the frame height by adding the CSS value 'height:100px;' for example)
<iframe src="https://wtools.io/code/embed-iframe/bUST" style="border:none;width:100%"></iframe>