Tabatha Launius
Saturday, August 13, 2011
Java Array and Random non repeating selections?
You should convert your booklist to an array list, randomly generate an index between 0 and the hightest index, or length()-1, and use remove to remove that book. The array list will shrink as you remove books.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment