Can I get the forest at the specified index of a BigInteger

Hi, I added two BigInteger each for a binary number in this way:
//x and y are StringBuilder object having large binary number on each
BigInteger a = new BigInteger(x.toString(), 2);
BigInteger b = new BigInteger(y.toString(), 2);
BigInteger c = a.add(b);
Now I need to know the value of index data bit in BigInteger c. For that, I am to convert c to binary string using the c.toString (2); then I use string.charAt (index); method. Sounds pretty good, but the last binary conversion BigInteger didn't use that much, because I just need to know the forest, not the binary integer. This can improve the program. Is there a better way to achieve the same?
Thank you

Check the "testBit' BigInteger method. (I did not know that casual, just watched all the methods available in BigInteger, and this looks like what you want.)

Tags: Java

Similar Questions

Maybe you are looking for

  • I can restore time capsule backup to another computer that already has a user

    Looking for help, my laptop was stolen, thankfully I have a time capsule backup. I could buy a new laptop, but I was wondering if there is anyway I can just restore my backup on the laptop of my wife, or if that's too difficult/impossible.  Currently

  • cRIO-9024 - supports SSH (Secure Shell) network?

    The Shell Server enable secure (sshd) in the measurement software & automation for the cRIO-9024 OR is not available. Usually, this would be an option as shown here: http://www.NI.com/white-paper/14626/en/ The cRIO-9024 OR does support SSH? Do I need

  • Expiration date and time in SQL server 2008 Enterprise Edition

    Please tell me the exact expiration Date and time in SQL Server 2008 Enterprise, and 2008R2 edition?

  • Printing from Vista 64 bit

    I have an old but superb HP Deskjet 720C printer, it worked fine in XP via a parallel to USB adapter cable but, even if it's on the list of compatibility of Vista it won't work for Vista 64-bit! When I try to print, the printer turns on, gets as much

  • Fast forward music stuck blackBerry Smartphones

    My curve is stuck in play all the fast forward music.  I see that others have had a similar problem in the past but no solution has been published. Clearly, a software bug in the RIM (as usual), how to reset without losing all my data?