ArrayList on CRIO

The java.utils.ArrayList library is not available in the libraries given by default in the netbeans plugin for FRC. Is this for a good reason (Compatibility?)?

What are comparable libraries available that can be used on the CRIO? (Obviously not ON the CRIO, but I think you understand what I mean). The Vector class is depreciated now, but I think that is my best bet.

Any advice?

Just use Vector. I know it’s deprecated, but that’s all you have to work with unfortunately. You’re going to have to add a cast when you use get(), because Java ME doesn’t support generics.

Thanks for the advice :smiley:

Good luck! I think I will be switching to C++ next year as I keep getting really frustrated with the Java ME that we have on the cRIO.

It is a pain making awesome programs ported to SE, and having to find out that the libraries just arn’t there.

We dropped C++ about 3 days before bagging (:ahh: ) and switched to java because it was an easier development environment to work with. Neither one is perfect, test it first to make sure you really want to switch.