Home » Community » Forums » » Java Game Programming Part III: The Power of Arrays
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 Java Game Programming Part III: The Power of Arrays
Post Reply 
Hi,
just a minor correction:

int number = 5;
sample.addElement(number);

won't work. It won't even compile. Vectors require Objects as paramaters. Seeing as an int is not an Object (it's a primitive), this won't work.

thanks,
John

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: