compiling error <identifier> expected
Hello I am new to Java
When I compile my codes I have the following error
Could someone please help me out?
Thanks
<identifier> expected
public FamilyTree(int numPerson, numChild, numParents)
Here are my codes
import java.io.*;
public class FamilyTree implements Serializable
{
private static final long serialVersionUID = 7981277547209222959L;
private static final int DEFAULT_SIZE = 40;
Person[ ] familyRecord;
public int size;
private int numChild;
private int numParents;
//Constructors////////////////////////////////////////////////////////////////////////////////////////////
public FamilyTree()
{
familyRecord = new Person[DEFAULT_SIZE];
for (int i=0; i<familyRecord.size; i++)
familyRecord = new Person();
}
public FamilyTree(int numPersons)
{
familyRecord = new Person[numPersons];
for (int i=0; i><familyRecord.size; i++)
familyRecord = new Person();
}
public FamilyTree(int numPersons, numChild, numParents)
{
familyRecord = new Person[numPersons];
for (int i=0; i><familyRecord.size; i++)
familyRecord = new Person(numParents, numChild);
}
//Display the name, birthday, parent's names and children's names for each/////////////
//(primary) Person in a FamilyTree object///////////////////////////////////////////////////////////
public void display()
{
for (int i=0; i><familyRecord.size; i++)
{
if (familyRecord.getName() != null)
System.out.Println(familyRecord.getName());
}
}
}>

