Comment on Tutorial - BitSet example in Java By Lakshmi



Comment Added by : Stolen Leaves

Comment Added at : 2014-08-20 15:37:17

Comment on Tutorial : BitSet example in Java By Lakshmi
Hi,

What is done here is, bitset.get(0, 15) returns a sub-bitset from the original one. So, bitset1 stores values same as bitset between positions 0 and 15 for the first statement. So, you have 2 bitsets, say 001100101010 and 101000100011. the xor simply does and xor, and produces the following as the new bitset

001100101010
101000100011
-----------------
011011110110

this continues on...


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. good work done.
View Tutorial          By: Nitin at 2009-08-29 10:51:41

2. How to download any file when a button is in .jsp
View Tutorial          By: Gopesh at 2012-04-13 09:35:11

3. Thank You very much :)
View Tutorial          By: RaghuCK at 2010-09-09 13:53:26

4. how to solve this while i am running the code it
View Tutorial          By: nikhilmuddasani at 2009-07-23 04:32:31

5. Hi i have created the 5 files and in main program
View Tutorial          By: Anandkumar at 2011-09-10 05:13:59

6. hey..
shouldn't the 2nd java code have an o

View Tutorial          By: izzie at 2010-04-06 11:34:34

7. well an easy code to understand
thanks muc

View Tutorial          By: narmada at 2011-01-17 09:47:02

8. This example is very useful to me,but i wnat more
View Tutorial          By: vaishali at 2010-12-06 08:20:18

9. its very good example explains what is an abstarct
View Tutorial          By: sandeep at 2012-01-06 07:13:29

10. You don't have to call the constructors. When you
View Tutorial          By: Watson at 2011-05-04 10:44:23