Getting user input using processing and then save them as an array

For receiving data in the Arduino have a look at Serial Input Basics

...R