Hacker News new | ask | show | jobs
by lboasso 4342 days 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" }

1 comments

thanks