Commit 446ce79
committed
feat: Add Bitwise4 class demonstrating left shift operation
Add a program that:
- Initializes an integer using a binary literal
- Applies a left shift (`<<`) by 2 bits
- Prints the result, showing how bits are shifted to the left
- Demonstrates the use of bitwise shift operators in Java.1 parent 9085532 commit 446ce79
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
0 commit comments