import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: gloyaute
 * Date: 10 06 2011
 * Time: 21:03:17
 * To change this template use File | Settings | File Templates.
 */

public class Animal {
    private static Map< String, String > animals;

    static {
        animals = new HashMap< String, String >();
        animals.put("Alice", "edith le singe");
        animals.put("Bruno", "izard le chamois");
        animals.put("Jean", "gold le poisson rouge");
    }

    public static void main(String[] args) {

        if (args.length != 1) {
            System.err.println("Pbm dans les arguments");
            System.exit(1);
        } else {
            System.out.println("L'animal prefere de " + args[0] + " est " + animals.get(args[0]));   
        }
    }
}
