3 ms·
So by default the type inferred is ArrayList, if you want a different type you just specify it. ex. var strings = { "red", "green", "blue" } //ArrayList var
by lboasso 12y ago
So by default the type inferred is ArrayList, if you want a different type you just specify it.
ex.
var strings = { "red", "green", "blue" } //ArrayList
var strings2 : LinkedList<String> = { "red", "green", "blue" }
- ape4 12y agothanks