class Solution {
public int[] decompressRLElist(int[] nums) {
List<Integer>ans = new ArrayList<>();
for (int i = 0; i < nums.length; i += 2)
for (int j = 0; j < nums[i]; ++j)
ans.add(nums[i + 1]);
return ans.stream().mapToInt(i -> i).toArray();`
I do not understand the last line.