3 ms·
I'd like it you could set what class this var strings = { "red", "green", "blue" } uses. In some clean way. eg I don't want List, I want ArrayList.
by ape4 12y ago
I'd like it you could set what class this
var strings = { "red", "green", "blue" }
uses. In some clean way.
eg I don't want List, I want ArrayList.
- carsongross 12y agoYou can do that the way you'd expect: var strings = new ArrayList<String>() { "red", "green", "blue" }
- ape4 12y agoThanks. That's interesting. Is there a global setting to always use ArrayList instead of List? Actually maybe global is too much... per file setting.