Java · ArrayList and wrapper classes
Arrays and lists hold the same kinds of data, and knowing how many values will come decides which one fits.