You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSONArray is initialized with an initial size of 10, but if I know in advance that I have hundreds of elements, a new constructor with an initial size can avoid lots of arraycopy under the hood.
Conversely, if I know I have less than 10 items, it could save memory.