fillList method

void fillList(
  1. List one,
  2. List two
)

Implementation

void fillList(List one, List two) {
  for (int x = 0; x < one.length; x++) {
    if (x >= two.length) return;
    one[x] = two[x];
  }
}