cool.
--- Update ---
Found a solution (?) to the problem.
...
ArrayList <Integer> numbers = new ArrayList<Integer>();
int position=0;
Type: Posts; User: ojonugwa
cool.
--- Update ---
Found a solution (?) to the problem.
...
ArrayList <Integer> numbers = new ArrayList<Integer>();
int position=0;
I have found that this is the case.
:o Okay.I'll get right to it.
--- Update ---
Ok so am working using Sets now (for the first time) and i discovered it does not allow duplicates which is good.but problem is,when i run the code...
Thanks.I have moved away from this problem as i now understand i cannot prevent the random number generator from generating a specific number twice.
Let say i have this code:
public class MyRandomStuff {
public static void main (String[]args) {
int [] randomNumbers = new int[5];
for (int i=0; i<randomNumbers.length; i++) {
...