Java.util package provides a Random class. An instance of this class is used to generate a stream of pseudorandom numbers. The class uses a 48-bit seed, which is modified using a linear congruential formula. The algorithms implemented by class Random use ... (more…)
Read more »
Recently Nada Amin and I discovered that Java and Scala are unsound.
Read more »
Java.util package provides a BitSet class which implements a vector of bits that grows as needed. Each component of the bit set has a boolean value. The bits of a BitSet are indexed by nonnegative integers. By default, all bits in the set initially have t... (more…)
Read more »
Even though I’ve been programming in Java for a few years, there are still cases when its syntax surprises me. Let me share a few examples that I thought wou... (more…)
Read more »
Peter Niederwieser, creator of Spock, the best testing framework ever, also contributed to Groovy programming language a very handy feature: Power Asserts. As you can see, we can see each value of … (more…)
Read more »