Does Diddy ArrayList support Ints?

Monkey Forums/Monkey Programming/Does Diddy ArrayList support Ints?

ondesic(Posted 2013) [#1]
The following code gives me an error:

Local ff:ArrayList<Int> = New ArrayList<Int>
ff.add(4)


I get "Cannot convert from Int to object"
Maybe I am doing something obviously wrong?


therevills(Posted 2013) [#2]
Use the IntArrayList class instead of the ArrayList class.


ondesic(Posted 2013) [#3]
Thank you!