Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about data process

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Just want to ask, i want to store all the records from the DB into a String[][] table, and only dealing with that table for the data process.
Not sure that's a good ideaor not.
Can anyone give suggestion. thanks
Li li
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi li li,

Just want to ask, i want to store all the records from the DB into a String[][] table, and only dealing with that table for the data process.
Not sure that's a good ideaor not.
Can anyone give suggestion. thanks

You are probably better off using one of the Java 2 collections instead of a static array. ArrayList lends itself well for storing table data since it has array characteristics and is dynamic. You just create it once in your model and add to it or take away from it as required. With static arrays, you'll have to keep replacing them as they expand or contract.
Hope this helps,
Michael Morris
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic