How can I to make new elements of an array diamically?

  • Thread starter Carlos Villaseñor M.
  • Start date
C

Carlos Villaseñor M.

Hi every body,

I need to add new elements to an array or new row in a matrix in execution
time. How can I do to make that?

I appreciate some help.

Regards
Carlos Villaseñor M.
 
T

Truong Hong Thi

Array size is fixed.
You could only do that by creating a new array and copy items from the
old array to the new ones. Why not use ArrayList instead?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top