It looks like if you only save values to the first index of your arrays, because "i" is set to "0" at the beginning of the serialEvent()-function. You are not describing what exactly is your problem, do you get wrong values, any eror-messages?
And maybe it would be a good idea to use ArrayLists instead of arrays, so you are more flexible when the amount of values changes.
And maybe it would be a good idea to use ArrayLists instead of arrays, so you are more flexible when the amount of values changes.