Results 1 to 3 of 3
  1. #1
    nigelturk is offline Member
    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Question how can i take 1's complement in java?

    how can i take 1's complement in making a java program?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,928
    Rep Power
    16

    Default Re: how can i take 1's complement in java?

    Moved from Advanced Java. What led you to believe that this is an advanced question?

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

  3. #3
    Potato is offline Member
    Join Date
    Dec 2011
    Posts
    25
    Rep Power
    0

    Default Re: how can i take 1's complement in java?

    Summary of Operators (The Java Tutorials > Learning the Java Language > Language Basics)

    Look at the bitwise operators, the one you're looking for is there

Similar Threads

  1. Converting a 2's complement to the proper integer
    By Chuklol in forum New To Java
    Replies: 1
    Last Post: 10-10-2011, 05:47 AM
  2. Reading a two's complement number from a InputStream
    By TorErik86 in forum Networking
    Replies: 1
    Last Post: 09-20-2010, 02:21 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •