SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer
Campbell Ritchie wrote:The naïve version of shuffling you have used...
. . . which I have overlooked in the past myself. Ignoring previously shuffled elements removes one source of bias.Junilu Lacar wrote:. . . It's a subtle but important difference.
sonai kale wrote:You created the array but didn't put anything in it, so you have an array that contains 5 elements, all of which are null. You could add
boll[0] = new ResultList();
All things are lawful, but not all things are profitable.
All things are lawful, but not all things are profitable.
All things are lawful, but not all things are profitable.
All things are lawful, but not all things are profitable.
Carey Brown wrote:In Deck you have
Because you have no local variable "card", this is equivalent to
Which is equivalent to
All things are lawful, but not all things are profitable.