I just wanted to implement Objects in Java, called ***"Family"***. In its constructor, i want this objects linked to their neighbours, so when i create an ***Family***-Object, i need max. two other ***Family***-Objects.

```
public class Family {

    Family leftNeighbour;
    Family rightNeighbour;

    public Family(Family leftNeighbour, Family rightNeighbour) {
        this.leftNeighbour = leftNeighbour;
        this.rightNeighbour = rightNeighbour;
    }   
}

```

Now, i started to init three families: `A` is the first, so it has only a right neighbour, `B` has two, `C` is the last, has only a left neighbour.

Problem:

```
Family A = new Family(null,B);
Family B = new Family(A,C);
Family C = new Family(B, null);

```

I can not init A, because B is not created yet. Also, i can not init B, because A is missing. Is there any possibility to solve this ***without*** getters and setters (find it a bit ugly, in case i need big amounts of family-objects).