View Full Version : ArrayList on CRIO
joelg236
31-05-2012, 22:25
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.
joelg236
31-05-2012, 22:46
You're going to have to add a cast when you use get(), because Java ME doesn't support generics.
Thanks for the advice :D
Thanks for the advice :D
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.
joelg236
31-05-2012, 23:51
It is a pain making awesome programs ported to SE, and having to find out that the libraries just arn't there.
PAR_WIG1350
01-06-2012, 02:46
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.
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.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.