SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to add 10 items to your ArrayList you may try that:
ArrayList
for (int i = 0; i < 10; i++) arr.add(i);
If you have already declare an array size variable you would use the variable size instead of number '10'
size