help me pls
package com.codegym.task.task15.task1522;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Reinforce the singleton pattern
*/
public class Solution {
public static void main(String[] args) {
}
public static Planet thePlanet;
// Add static block here
static {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
try {
String s = r.readLine();
if(s.equals(Planet.EARTH)){
thePlanet = Earth.getInstance();
}
else if(s.equals(Planet.MOON)){
thePlanet = Moon.getInstance();
}
else if(s.equals(Planet.SUN)){
thePlanet = Sun.getInstance();
}
else {
thePlanet = null;
}
}
catch (IOException e){
}
}
public static void readKeyFromConsoleAndInitPlanet(String thePlanet1) {
// Implement step #5 here
if (thePlanet1.equals("earth"))
thePlanet = Earth.getInstance();
else if (thePlanet1.equals("moon"))
thePlanet = Moon.getInstance();
else if (thePlanet1.equals("sun"))
thePlanet = Sun.getInstance();
else
thePlanet = null;
}
}