Skip to content

Commit 82a2ba3

Browse files
Update operator1.java
1 parent 53f0af9 commit 82a2ba3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

operator1.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
public class shift_operator {
2-
public static void main(String[] args) {
1+
public class shift_operator
2+
{
3+
public static void main(String[] args)
4+
{
35
System.out.println(10<<3);//left shift(10*2^3)
46
System.out.println(10<<2);
57
System.out.println(10>>3);//right shit(10/2^3)

0 commit comments

Comments
 (0)