не проходит предпоследний пункт
package com.javarush.task.task15.task1529;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Осваивание статического блока
*/
public class Solution {
public static void main(String[] args) {
}
static {
try{
result = new Plane(1);
reset();
}
catch(Exception e){}
}
public static CanFly result;
public static void reset() throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String read = reader.readLine();
// int x = Integer.parseInt(read);
if(read.equals("helicopter")){
result = new Helicopter();
}
else if(read.equals("plane")){
int x = Integer.parseInt(read);
result = new Plane(x);
}
//add your code here - добавьте код тут
}
}