Lucky Stankovic's Profile


Points: 12
Birthday: February 6, 1995
Relationship: Single




Lucky Stankovic  >>  Bucky Roberts
March 13, 2016 · Public

Hey Bucky, could you make tutorial about Speech recognition program in Java? I think it would be useful for everyone here. Thank you in forward! :)

Lucky Stankovic
March 12, 2016 · Public

Lucky Stankovic  >>  Bucky Roberts
March 12, 2016 · Public


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( but i do not understand how to input elements in the vector(array?) using Scanner input.

Thank you in forward!