• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What to use instead of Arraylist

 
Greenhorn
Posts: 12
Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic