I'm stuck on the second to last requirement. Can someone please help me with this?
package com.codegym.task.task14.task1408;
/*
Chicken factory
*/
public class Solution {
public static void main(String[] args) {
Hen hen = HenFactory.getHen(Continent.AFRICA);
hen.getMonthlyEggCount();
}
static class HenFactory implements Continent{
static Hen getHen(String continent) {
if (continent.equals(EUROPE))
return new EuropeanHen();
if (continent.equals(NORTHAMERICA))
return new NorthAmericanHen();
if (continent.equals(AFRICA))
return new AfricanHen();
continent.equals(ASIA);
return new AsianHen();
}
}
}