| | |
Lottery Program
![]() |
•
•
Join Date: Sep 2004
Posts: 11
Reputation:
Solved Threads: 0
I'm writing a Lottery program where the user type sin 4 numbers between 1 and 30, the program generates 4 random numbers. In my program I have stored the random numbers and the numbers chosen by the player in 2 separate arrays. The problem I have is that I dont know how to make the program tell the user how many numbers they have matched.
Is there an easier way than writing so many if statements, is there a way of comparing the arrays? If anyone can help me I will be very grateful.
Mus.
Is there an easier way than writing so many if statements, is there a way of comparing the arrays? If anyone can help me I will be very grateful.
Mus.
![]() |
Similar Threads
- Need help with Lottery program (Java)
- Random Number Problem For Lottery Program (Visual Basic 4 / 5 / 6)
- Another Lottery Program sorting problem (Visual Basic 4 / 5 / 6)
- Lottery Program for VB (VB.NET)
- lottery program help (Java)
Other Threads in the Java Forum
- Previous Thread: Syntax Analyser and General Java Help
- Next Thread: Text Searching
| Thread Tools | Search this Thread |
-xlint add android api applet application applications array arrays automation bank bi binary blackberry bluetooth chat class client code compile compiler component database development digit eclipse equation error event fractal freeze functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide idea image infinite input int integer j2me java javame javaprojects jetbrains jni jpanel jtable julia learningresources linux list login loop main map method methods mobile myregfun netbeans newbie nonstatic notdisplaying pearl problem program programming project qt recursion scanner screen scrollbar server set sms sort sorting spamblocker sql sqlserver string superclass swing system text-file thread threads tree variablebinding windows xor





