Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   ArrayList on CRIO (http://www.chiefdelphi.com/forums/showthread.php?t=106739)

joelg236 31-05-2012 22:25

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?

vinnie 31-05-2012 22:40

Re: ArrayList on CRIO
 
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

Re: ArrayList on CRIO
 
Quote:

Originally Posted by vinnie (Post 1172191)
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

vinnie 31-05-2012 23:49

Re: ArrayList on CRIO
 
Quote:

Originally Posted by joelg236 (Post 1172193)
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

Re: ArrayList on CRIO
 
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

Re: ArrayList on CRIO
 
Quote:

Originally Posted by vinnie (Post 1172197)
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.


All times are GMT -5. The time now is 10:12.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi