• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What to use instead of Arraylist

 
Riamor Von Trapp
Greenhorn
Posts: 12
Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Since ArrayList isn't available in JME, what should I use instead?
I'm new to Java, had used ArrayList on the PC version of my program.

I'm trying to store a list of bluetooth devices, with the friendly name and bluetooth id.
From what I can tell, I can use a Vector instead. But bearing in mind the limitations of mobile devices, is that the best route?
Thanks
Riamor
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vector is the grandparent of all of Java's collection classes. It should be OK.

The main reason why Vector is out of favor these days is that (like StringBuffer) it adds the overhead of a thread-lock to its operations (they run synchronized). However, I don't think I'd worry about that on a mobile device.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic