Why my output is empty ?
package pl.codegym.task.task14.task1408;
/*
Ferma drobiu
*/
public class Solution {
public static void main(String[] args) {
Hen hen = HenFactory.getHen(Continent.AFRICA);
hen.getMonthlyEggCount();
}
static class HenFactory {
static Hen getHen(String continent) {
Hen hen = null;
switch (continent) {
case "Afryka":
hen = new AfricanHen();
break;
case "Azja":
hen = new AsianHen();
break;
case "Europa":
hen = new EuropeanHen();
break;
default:
hen = new NorthAmericanHen();
}
return hen;
}
}
}