I can't get the last condition to pass at all, no matter what I try, despite getting the correct output.
What I have tried so far:
I used to have the getHen() method do the checks on the static variables of the Continent interface, that didn't work either.
I got rid of the continent variable inside each Hen, and instead wrote the continent by hand, which didn't work either.
package com.codegym.task.task14.task1408;
/*
Chicken factory
*/
public class Solution {
public static void main(String[] args) {
Hen hen = HenFactory.getHen(Continent.AFRICA);
// System.out.println(hen.getMonthlyEggCount());
// System.out.println(hen.getDescription());
// System.out.println(HenFactory.getHen(Continent.ASIA).getDescription());
// System.out.println(HenFactory.getHen(Continent.NORTHAMERICA).getDescription());
// System.out.println(HenFactory.getHen(Continent.EUROPE).getDescription());
}
}