The readKeyFromConsoleAndInitPlanet method must correctly update the value of the variable thePlanet according to the task conditions.
Cannot see where I make misake. Please help
package pl.codegym.task.task15.task1522;
public class Sun implements Planet {
private static Sun instance;
private Sun() {
}
public static Sun getInstance() {
if(instance == null) {
instance = new Sun();
}
return instance;
}
}