I got a problem with a question.
Question: an Array instance variable called people
has been set up by the line:
public Person[] people;
Write the line that will initialise/instantiate it to take 100 objects of type Person.
My answer:
public Person[] people;
double []people = new Person [100];`
The error that I am getting is this:
Main.java:8: illegal start of expression
public Person[] people;
What can I do to solve this problem?