Bitwise addition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oxiarius12985
    New Member
    • Sep 2007
    • 1

    #1

    Bitwise addition

    Can you help me regarding this matter because I have some difficulties on how can I add a binary number using a java programs by means of array!

    heres the problem that I created will you plss.. help on how to get the exact output!

    "Create a program that accepts a 2-3 bits parallel binary numbers and display the binary sum. Using Java programming language!"

    Example:
    num1: 101
    +
    num2: 111
    -------------------
    sum: 1100

    Plsss help! well im just creating program on a number systems!

    plsss reply to my [email removed] or through this forum!!!
    Last edited by MMcCarthy; Sep 20 '07, 01:51 PM. Reason: email removed - against site rules
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #2
    Please read the posting guidelines about posting Homework Questions and about Posting Your Email

    Always check the JAVA API for classes/methods that can help you.

    Comment

    • Ganon11
      Recognized Expert Specialist
      • Oct 2006
      • 3651

      #3
      Think about each digit addition separately:

      1 + 1 = 10
      1 + 0 = 01
      0 + 1 = 01
      0 + 0 = 00

      Comment

      Working...