• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

shift operator and bits

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been studying the Bates and Sierra book. I don't quite understand the shift operator and bits. Is there a better explanation of these somewhere on the web?
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch!
Sometimes it's helpful to just read a few different explanations of a topic, whether one explanation is better than another may not be important.
So, for another explanation of this bit manipulation stuff, you might appreciate a read of the "Cat and Mouse Games with Bits" story of The JavaRanch Campfire Stories.
 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by AJ Brown:
I've been studying the Bates and Sierra book. I don't quite understand the shift operator and bits. Is there a better explanation of these somewhere on the web?


I've read that book too. Really, what do you not understand? See if I could explain it to you?
 
AJ Brown
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. The cat and mouse example really helped. I now understand it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic