4 ms·
Oh, but you can still do: List<String> list = new ArrayList<String>(); list.add("item"); String item = list[0]; right? I guess I was thrown off by the
by paulbaumgart 17y ago
Oh, but you can still do:
List<String> list = new ArrayList<String>();
list.add("item");
String item = list[0];
right?
I guess I was thrown off by the wording- I assumed the line about collections being immutable applied to all collections that use the new syntax.