First I'll explain the line where you create an instance of the Familiares class.
Familiares vector[i] = new Familiares("paco");
What that line of code is doing is to create an instance of the Family class, in Familiars there must be a constructor that receives me a string type data because you are sending it "paco", additional when placing that line inside a loop you will create several instances called in the same way and all with the data paco.
Now to store data in an array, you must first create the vector, read the data you need to enter and store the data in the vector, it would be like this:
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
System.out.println("Introduzca el numero deseado de objetos: ");
int n = teclado.nextInt();
String nombre;
String vector[] = new String[n];
for (int i = 0; i < n; i++) {
System.out.println("Introduzca el nombre:");
nombre = teclado.nextLine();
vector[i] = nombre;
}
}
What you are doing is creating and reading the variable n int type to define the size of the array, then create the variable name String type to store the name of the data you want in each position of the array, enter the cycle and travel the array starts at 0 and goes up to n, for each position it will read the name and store it in the indicated position of the vector. For example, I entered n = 2, doing a desktop test would look something like this:
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
System.out.println("Introduzca el numero deseado de objetos: ");
int n = teclado.nextInt(); // n=2
String nombre;
String vector[] = new String[2]; // asigna n = 2
for (int i = 0; i < 2; i++) {
System.out.println("Introduzca el nombre:");
nombre = teclado.nextLine(); // i = 0 , nombre =Marcela
vector[i] = nombre; // vector[0] = Marcela
//luego al subir al bucle va a aumentar i, sería algo así i = 0 + 1 por
//lo tanto i=1 y realiza nuevamente el proceso:
//nombre = Camilo
//vector[1] = Camilo;
//i = 1 + 1 por lo tanto i=2 y al no cumplirse la condición del ciclo
// que i < 2, sale del ciclo y termina el programa.
}
}
I hope I was clear with the information.
Greetings.