class Personne {
    String nom;
    int    age;
    Personne enfant;
}

class Exo2 {

    static void affiche (Personne p) {
        System.out.println(p.nom + " " + p.age);
        if (p.enfant != null)
            System.out.println(p.enfant.nom + " " + p.enfant.age);
    }

    static void main (String[] args) {

        Personne p1 = new Personne();
        p1.nom = args[0];
        p1.age = Integer.parseInt(args[1]);

        Personne p2 = new Personne();
        p2.nom = args[2];
        p2.age = Integer.parseInt(args[3]);
        p2.enfant = null;

        p1.enfant = p2;
        affiche(p1);    // p1 a un enfant (question 1)

        affiche(p2);    // p2 a zero enfant (question 2)
    }
}
