![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 6
Rep Power: 0
![]() |
Converting object to arraylist
I put ArrayLists into an ArrayList. I send this ArrayList to a class. In that class I will use the ArrayLists. In this class i defined a new ArrayList. In this class every time the timer elapsed I will get the next ArrayList to this new ArrayList that I defined in the class. But when i wrote
arrListInClass = mainArrList[counter]; error occurs because of casting, it cannot cast object to arraylist. help?!? |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Try this:
arrListInClass = (ArrayList)mainArrList[counter]; |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|