• Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayList question  RSS feed

 
Adam Chalkley
Ranch Hand
Posts: 518
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I'm wondering how come when I use an arraylist like this it works and prints the value


this works perfect and prints the value 47 but when I do this inside a for loop and try to print the values it prints nothing

 
Adam Chalkley
Ranch Hand
Posts: 518
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adam Chalkley wrote:Hi I'm wondering how come when I use an arraylist like this it works and prints the value


this works perfect and prints the value 47 but when I do this inside a for loop and try to print the values it prints nothing







UPDATE *********************

SORRY GUYS IGNORE THIS POST WAS A STUPID MISTAKE IN THE FOR LOOP I REALISED THAT THE SIZE() WAS 0 SO OF COURSE IT WOULD BE BLACK SILLY ME.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!