how to get arraylist of certain size in java code example Example: arraylist length java aList.size()