Adding numbers in an empty array in Processing 3.5.3

Thank you for your reply but I’ve tried to do it on my whole programm and I have the error message “The final field rythm.list cannot be assigned”.