• 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
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic