aspose file tools*
The moose likes Beginning Java and the fly likes random numbers in arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "random numbers in arrays" Watch "random numbers in arrays" New topic
Author

random numbers in arrays

Howard Ralston
Ranch Hand

Joined: Jun 25, 2001
Posts: 105
Howdy folks,
Is it possible to email a short program to someone for assistance in debugging it? It is supposed to generate random numbers and place them into an array, making sure that no numbers are repeated. Then it is supposed to convert these numbers to string and set them as text in an array of TextFields. It will compile, but not run. I get an exception in thread "main" , and I've been beating my head against a wall trying to figure out why it will not work.
Thanks in advance for any replies.


<a href="http://www.getlocaldeals.com" target="_blank" rel="nofollow">Free local coupons</a>
Andy Ceponis
Ranch Hand

Joined: Dec 20, 2000
Posts: 782
Post the code here and someone will be able help ya(prolly not me though ).
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
If we do e-mail responses then only ONE person benefits. If you post the code and get some replies then HUNDREDS of people benefit.
If you are banging your head over this, then it will probably help others to avoid the problem by reading your code.
Post away .


"JavaRanch, where the deer and the Certified play" - David O'Meara
Andy Ceponis
Ranch Hand

Joined: Dec 20, 2000
Posts: 782
Originally posted by Cindy Glass:
If you are banging your head over this, then it will probably help others to avoid the problem by reading your code.
Post away .

"others" refers to people like me....
Howard Ralston
Ranch Hand

Joined: Jun 25, 2001
Posts: 105
Okay, guys. I cannot enter the code until tonight, but hopefully someone will have some spare time to look at it tomorrow.
Howard
ryan burgdorfer
Ranch Hand

Joined: Jan 24, 2001
Posts: 219
Howard,
Just copy the code from your editor and paste it into your next post. Be sure to paste it between code tags...they look ike this:
<h4>(code)...paste code here...(/code)</h4>
Just replace the parentheses ( ) with brackets [ ]. Using code tags will make your code alot easier for everyone to read, and will increase your chances of getting meaningful replies. I know that I, for one, tend to skip over reading code that is NOT formatted between code tags...
------------------
  • Ryan Burgdorfer
  • Java Acolyte in
  • Columbus, OH USA


<UL TYPE=SQUARE><I><LI>Ryan Burgdorfer<BR><LI>Java Acolyte</I></UL>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: random numbers in arrays
 
Similar Threads
need help with array
random numbers gen
coding problem
Selecting random records
Random number without dublicate