• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Bit Manipulation

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

What is the best tutorial for bit manipulation in java? I've tried reading some books but they only give an overview and few examples. It would be much better if a tutorial could cover up all the topics in bit manipulation and present more helpful examples and applications.

Please help me with this as I am so confuse with bit manipulation in java.
If I could not understand this topic, the more I could not understand complex programs that use bit manipulation.

Thanks in advance!

Mario
 
Ranch Hand
Posts: 1970
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bit manipulation in Java is very similar to C/C++ and the way it works in Java is as friendly as in other languages. You have your AND, OR, XOR, NOT operators, & | ^ ! , and your shift operators, << >> >>>.

Perhaps what you are needing is a general explanation of bitwise operations and how numbers (integer, floating point etc.) are stored in binary. Perhaps do some Google searches, without limiting yourself to Java.
 
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic