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
cristian2014
Posts: 32
Registered: ‎03-11-2014
My Device: 8520
Accepted Solution

List of objects

[ Edited ]

Hy guys, I'm trying to declare a list in Backberry but I'm am having some trobule in dooing this.

Can someone tell me how to declare a list similar to this:

 

Table is a class that I have declared in another package.

 

List<Table> tables = new ArrayList<Table>();

Developer
cristian2014
Posts: 32
Registered: ‎03-11-2014
My Device: 8520

Re: List of objects

I've solved it. My eclipse was messed up and that why it was showing me errors. Plese ignore this :smileyhappy:

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: List of objects

as a sidenote: bb java is based on java 1.3/1.4, it does not support Generics.
You can use an untyped Vector.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter