Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
nirmalsat
Posts: 207
Registered: ‎07-31-2009
My Device: Not Specified
Accepted Solution

How to Resize an array??

Hi,

 

Say i have an array of objects like so :

 

Object[] ob = new Objecy[10];

 

What should i do if i need to later on increase the size or in effect resize the array??? 

------------------------------------------------------------------------------------------------------------------------
Click the Kudos! badge on left side of the message , if you are happy with a solution given by a user. When you do so, you are saying thanks to its author.
Mark a reply as a solution , if you think your question has been answered.
To mark a message as a solution: Click "Accept as solution" icon on the reply.
Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: How to Resize an array??

[ Edited ]
Consider Vector.
Message Edited by BBDeveloper on 07-10-2009 11:50 AM

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
nirmalsat
Posts: 207
Registered: ‎07-31-2009
My Device: Not Specified

Re: How to Resize an array??

Ya got it.. Thanks..
------------------------------------------------------------------------------------------------------------------------
Click the Kudos! badge on left side of the message , if you are happy with a solution given by a user. When you do so, you are saying thanks to its author.
Mark a reply as a solution , if you think your question has been answered.
To mark a message as a solution: Click "Accept as solution" icon on the reply.
Please use plain text.