Hi, I'm a java programmer and I'm seeing some that say it's better ArrayList
than a Array
normal?
I honestly do not see difference I see it the same
Hi, I'm a java programmer and I'm seeing some that say it's better ArrayList
than a Array
normal?
I honestly do not see difference I see it the same
Hello as they indicate in the previous answer an ArrayList can change size as needed at runtime, the ArrayList Class implements the List interface
List<Integer> lista = new ArrayList<>();
The Integer value between the diamond operator (< >) indicates the type of object to be entered, because if you try to do this: lista.add("1");
will not compile since it asks for an Integer (1,2,3 .. .) and trying to send a String.
Greetings.