Can someone help me to make a program in java:
1. Generate 2 rows of 50 random numbers (int) from 0 to 99.
2. Search the numbers that appear in the first row, but not in the second, and numbers that appear in the second row but not in the first. Print the result.
Help someone, please?
By now I have this:
Re: Help! Please!
I doubt if you have any java programming experience at all ! :mad:
Look what you have written :
You have already allocated memory for AllNumbers in the first statement itself. So no need for the 2nd and 3rd statements. Further, the second and third statements are duplicates and they try to access AllNumbers where as AllNumbers is declared to have maximum index 1 (minimum 0) in the first dimension !
Also, the code that you have till now, prints 2601 numbers (51 * 51), one number per row because you use
To generate 2 rows of 50 random numbers :
|All times are GMT +5.5. The time now is 03:42.|