• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shift Operators

 
Raheel Hasnain
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic