Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Randomize Arrays to Variables?
Index -> Programming, Java -> Java Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
stajanleafs




PostPosted: Mon Jun 09, 2008 11:12 am   Post subject: RE:Randomize Arrays to Variables?

i get...
attempt to use a null pointer (java.lang.NullPointerException)
Sponsor
Sponsor
Sponsor
sponsor
Euphoracle




PostPosted: Mon Jun 09, 2008 5:29 pm   Post subject: RE:Randomize Arrays to Variables?

Line?

Edit: Try changing the -1 at the Math.Random bit to -2. I overlooked that length is last index+1 essentially.
stajanleafs




PostPosted: Mon Jun 09, 2008 8:06 pm   Post subject: RE:Randomize Arrays to Variables?

ok well thanks for the answers guys.. i came up with a solution o my own losely based on what you guys gave me and some Java examples of things....
thanks for helping
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 18 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: