+ 2
Lab work! Help:)
Task: Write a console program that prints result of bit shift operators for integer variable.
18 Answers
+ 6
Oh, nice once I visit...) im from Ukraine
+ 5
Use the '<<' or '>>' or '>>>' operators.
+ 5
This exemple will perhaps help you :
int start = 10;
System.out.println(start);
System.out.println(start >> 1); // Divide by 2
System.out.println(start << 1); // Multiply by 2
+ 5
Be careful with integer division : 5 / 2 = 2 and not 2.5. You lost the decimal...
+ 5
I develop in Java 😉, among others.
+ 5
Congrats ☺.
+ 5
Belgium. And you ?
+ 5
I have never been to Ukraine, sorry 😕. Are you studying computer science ?
+ 5
Yes, I study Java)) it is interesting and perspective)
+ 5
Do you have viber?
+ 5
No, I am not very connected for a computer scientist 😯. Only Gmail.
The Java community is very large. You can find a lot of tutorial on the net.
Since how long have you begin with Java?
+ 3
Thank you so much))
+ 3
2.5 it will be double
+ 3
You look professional in Java)
+ 3
Geo)) thanks, I done my work
+ 3
Where are you from?
+ 2
Ooh, it is the most difficult for me..
+ 2
hi anastasia