Sunday, July 17, 2011

In java, how can I create an int array of length 16 containing numbers 0-7 two times each?

I need to create an array of size 16 that randomly fills itself with numbers 0-7, each number being in the array two times. How can I do this? I have attempted this about 50 times, and I can provide some sample code if needed. Please get back to me asap!

No comments:

Post a Comment