Just wanted other opinions on my code and a way to figure out whether or not each number placed into the 2D array is unique. My mind is blanking out a bit, I placed something in the method before but erased it. Debating on whether the parameters should simply be the 2D array by itself, or the array and the temporary number.
AbstractEden
0
Newbie Poster
Recommended Answers
Jump to PostPlace numbers 1-16 in an ArrayList:
//holds numbers 1-16 ArrayList uniqueNums = new ArrayList(); //add numbers 1-16 for (int i=0; i < 16; i++) { uniqueNums.add(i+1); }//for
Use the following random number generator method. It was taken from
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.