Hi!

I have a question about how to (user) input elements of the Complex vector.This is my assignment:
Create a class Complex which contains two private attributes (real and imaginary part of complex number), and also has these public methods: Constructor with 2 arguments (real and imaginary), method for calculating the module of the complex number, method that will be used for addition with this complex number.
In main function, i need to create the vector of the complex numbers that contains 10 elements. I need to make user input, that will input elements in this vector.At last, i need to print arithmetic mean of the complex number module. I do not understand how to make this user input. (I know the procedure with Scanner p=new Scanner(System.in)) but i do not understand how to input elements in the vector(array?) using Scanner input.

Thank you in forward!