OCAJP 7
I think there are two serious logic errors in that line. I also think they cancel each other out.Stef Weidert wrote: . . .
No, the problem you have got is straight in front of you. It is a piece of very sophisticated plastic and silicon and it is interfering with your thought patterns. Get rid of said sophisticated hardware and find the one bit of hardware in the room which is more sophisticated still. It lives about an inch behind your eyes and is called a brain. You can get the brain to work by writing, drawing, sketching etc, for which you need a sheet of paper, a pencil and an eraser. That last piece of hardware is by far the most important.Stef Weidert wrote: . . . I am having problems creating the methods. . . .
In 15″ I thought of at least two ways to implement that. But try implementing one winner only at first, then consider how to add multiple winners later.Stef Weidert wrote:if two people get the same amount of numbers . . .
Correction. I am sure that code will not run to completion.A few minutes ago, I wrote:That code . . . I am not sure it will run to completion. . . .
Get the design of classes going and you will probably be able to work out the answer to that easily.Stef Weidert wrote:Any ideas if I should generate the random number in the original class or the helper class? . . .