Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Shift Operators Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Shift Operators" Watch "Shift Operators" New topic
Author

Shift Operators

Raheel Hasnain
Greenhorn

Joined: Sep 19, 2001
Posts: 5
I have a confusion to understand the shift operators plz anybody told me about shif operators.
and i hava a question for shift operators.

Q) Write a console programme to define and initialize a variable of type byte to 1 and then multiply it by 2 and display its value 8 times?
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Raheel
Is there a specific part of shift operators you don't understand? Try reading this campfire story and then let us know what you dont understand. It can be a fairly detailed topic and I dont want to waste your time with something you already know.
Here are a couple other threads you can check out if you like:
http://www.javaranch.com/ubb/Forum33/HTML/002817.html
http://www.javaranch.com/ubb/Forum24/HTML/011093.html
hope that helps a little bit or gives you a starting point.

------------------
Dave
Sun Certified Programmer for the Java� 2 Platform


Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Shift Operators