• Post Reply Bookmark Topic Watch Topic
  • New Topic

at run time I want to add Objects to Arraylist,please the follow is best way or suggest best way  RSS feed

 
jacob deiter
Ranch Hand
Posts: 587
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
at run time I want to add Objects to Arraylist,please the follow is best way or suggest best way

 
Nitish Bangera
Ranch Hand
Posts: 537
Eclipse IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah it is correct. But what exactly do you want to do?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12542
48
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In software design, there is seldom if ever a 'best way'. Often there are dozens of variables that must be considered. The primary ones are speed, memory use, and code readability. 99% of the time (in my opinion), the third one is the most important.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!