Computer Science Canada Arrays |
| Author: | BoXxI2004 [ Mon Mar 08, 2004 12:02 am ] |
| Post subject: | Arrays |
in an array how would u create an random array, ask the user to input some number they can be any like 14 , 25 .. and how would u store them? |
|
| Author: | wtd [ Mon Mar 08, 2004 1:53 am ] |
| Post subject: | |
As array of random numbers, or an array of random length? |
|
| Author: | BoXxI2004 [ Mon Mar 08, 2004 7:05 am ] |
| Post subject: | |
well the user inputs the length he wants... and radom numbers (in a range) are created in the array |
|
| Author: | Tony [ Mon Mar 08, 2004 11:17 am ] | ||
| Post subject: | |||
so you would just use a forloop to fill in the array
For the random value, you got to include somethign like .util.Random; and then initialize your randNum class or what not I'm not sure |
|||
| Author: | Dan [ Mon Mar 08, 2004 11:22 am ] |
| Post subject: | |
BoXxI2004-> plz make you avtare smaller, it mess with frame on small rez comps. |
|
| Author: | wtd [ Mon Mar 08, 2004 4:29 pm ] | ||
| Post subject: | |||
Hmmm... not tested:
|
|||